TxFontEmbeddingType FontEmbedStyle { get; } |
FontEmbedStyle sets the style for embedded fonts in the current document. Styling the document using embedded fonts (instead of direct font naming) can decrease the size of the generated PDF document. This property is provided for backward compatibility with Library Version 1.x only.
Equivalent in new interface: IPDFDocument4::FontEmbedStyle.
{ PDF object is supposed to be created } PDF.FontEmbedStyle := fetFullFont; { If we embed all used fonts in document then file size will } { be larger but anyone will be able to view this document even } { without needed fonts installed in the system. } PDF.BeginDoc; PDF.PDFPAGE_SetActiveFont('Verdana', False, False, False, False, 16.0, 0); PDF.PDFPAGE_TextOut(20, 20, 0.0, 'Text'); PDF.EndDoc;
// PDF object is supposed to be created PDF.FontEmbedStyle = TxFontEmbeddingType.fetFullFont; // If we embed all used fonts in document then file size will // be larger but anyone will be able to view this document even // without needed fonts installed in the system. PDF.BeginDoc(); PDF.PDFPAGE_SetActiveFont("Verdana", false, false, false, false, 16.0, 0); PDF.PDFPAGE_TextOut(20, 20, 0.0, "Text"); PDF.EndDoc();
// PDF object is supposed to be created PDF->FontEmbedStyle = fetFullFont; // If we embed all used fonts in document then file size will // be larger but anyone will be able to view this document even // without needed fonts installed in the system. PDF->BeginDoc(); PDF->PDFPAGE_SetActiveFont("Verdana", FALSE, FALSE, FALSE, FALSE, 16.0, 0); PDF->PDFPAGE_TextOut(20, 20, 0.0, "Text"); PDF->EndDoc();
' PDF object is supposed to be created PDF.FontEmbedStyle = 0 ' 0 - embed full, 3 - not embed ' If we embed all used fonts in document then file size will ' be larger but anyone will be able to view this document even ' without needed fonts installed in the system. PDF.BeginDoc PDF.PDFPAGE_SetActiveFont "Verdana", False, False, False, False, 16.0, 0 PDF.PDFPAGE_TextOut 20, 20, 0.0, "Text" PDF.EndDoc