AddTrueTypeCollectionFontFromFile

Paginamanipulatie

Beschrijving

Embeds one face of a TrueType collection from a raw TTC, WOFF 1.0 or WOFF2 container

Syntaxis

Delphi

Function AddTrueTypeCollectionFontFromFile(Const FileName: WideString; FaceIndex: Integer): Integer;

Syntaxis

FileNamePath to a raw or web-font collection
FaceIndexZero-based face binnen de collectie

Retourwaarde

De font-ID, of 0 wanneer het bestand niet kan worden gelezen of de index negatief is

Opmerkingen

FaceIndex nul houdt het historische eerste-face-gedrag van AddTrueTypeFontFromFile aan; een index voorbij het laatste face valt terug op het laatste face. WOFF2-invoer vereist Windows 10 versie 1703 of nieuwer

Zie ook

AddTrueTypeFontFromFile