Debenu Quick PDF logo


Text, Fonts

Version history

This function was introduced in Quick PDF Library version 11.15.


Embeds a TrueType, OpenType/TrueType or OpenType/CFF font into the document. The TrueType font is specified by the data string and does not have to be installed as a system font.

This function is functionally identical to AddOpenTypeFontFromString.

For TrueType and OpenType/TrueType fonts, a temporary file must be created during this process, call SetTempPath to specify where this temporary file should be created.



function TDebenuPDFLibrary1511.AddTrueTypeFontFromString(
  const Source: AnsiString): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::AddTrueTypeFontFromString(
  Source As String) As Long


int DPLAddTrueTypeFontFromString(int InstanceID, char * Source)


Source String that contains data of the TrueType font program to embed.

Return values

0 The font could not be embedded
Non-zero The ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport