Debenu Quick PDF logo

AddTrueTypeSubsettedFont

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 8.11.

Description

Adds a subsetted TrueType font to the document.

For Options 0 and 1 the font subset is fixed and cannot be changed.

For Options 2 and 3 the font subset can be changed Similar to 0 but subset can be updated using UpdateTrueTypeSubsettedFont

Syntax

Delphi

function TDebenuPDFLibrary1811.AddTrueTypeSubsettedFont(FontName, 
  SubsetChars: WideString; Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::AddTrueTypeSubsettedFont(
  FontName As String, SubsetChars As String, Options As Long) As Long

DLL

int DPLAddTrueTypeSubsettedFont(int InstanceID, wchar_t * FontName,
  wchar_t * SubsetChars, int Options)

Parameters

FontName The name of the TrueType font that must be subsetted.
SubsetChars A string containing the characters that should be included in the font subset.
Options 0=MS PlatformID, Unicode charset
1=Unicode PlatformID, "don't care" charset
2=Similar to 0 but subset can be updated using UpdateTrueTypeSubsettedFont
3=Similar to 1 but subset can be updated using UpdateTrueTypeSubsettedFont
4=Similar to 2 but subset is automatically updated
5=Similar to 3 but subset is automatically updated

Return values

0 The subsetted font could not be added or the CharSet parameter was out of range
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 © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport