AddTrueTypeFont
Texto, Fuentes
Descripción
Añade una fuente TrueType al documento. La fuente debe estar instalada en el sistema. Si la fuente no está incrustada, el lector del documento PDF también debe tenerla instalada en su sistema. Si está incrustada, el lector no necesita tenerla instalada
Incrustar una fuente aumenta mucho el tamaño del archivo PDF. Algunas fuentes no tienen licencia para incrustarse
Sintaxis
Delphi
Function TPDFlib.AddTrueTypeFont(Const FontName: WideString; Embed: Integer): Integer;
ActiveX
Function PDFlib::AddTrueTypeFont(FontName As String, Embed As Long) As Long
DLL
int DLAddTrueTypeFont(int InstanceID, const wchar_t * FontName, int Embed);
Parámetros
| FontName | Nombre TrueType como en Windows\Fonts, p. ej. 'Times New Roman', o familia con estilo, p. ej. 'Times New Roman [BoldItalic]'. Estilos [Bold], [Italic], [BoldItalic]. Puede indicar página de códigos, p. ej. 'Arial [Bold] {1250}': {0} Direct, {437}/{850}/{852} OEM, {874} Thai, {1250} East Europe, {1251} Russian, {1252} ANSI, {1253} Greek, {1254} Turkish, {1255} Hebrew, {1256} Arabic, {1257} Baltic, {1258} Vietnamese, {1361} Johab 0 = Don't embed 1 = Incrustar |
|---|---|
| Embed |
Valores devueltos
| 0 | No se pudo añadir la fuente. Esto puede significar que la licencia de la fuente no permite incrustarla o que no se encontró |
|---|---|
| Non-zero | El ID de la fuente que se añadió correctamente. Este ID puede utilizarse con la función SelectFont para seleccionar la fuente |