Debenu Quick PDF logo

AddUnicodeFont

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 13.12.

Description

Experimental function to add an installed Unicode font into the PDF allowing any glyph to be used in the full U+0000 to U+10FFFF Unicode range.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddUnicodeFont(FontName: WideString; EncodingOptions, 
  EmbedOptions: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddUnicodeFont(FontName As String,
  EncodingOptions As Long, EmbedOptions As Long) As Long

DLL

int DPLAddUnicodeFont(int InstanceID, wchar_t * FontName, int EncodingOptions,
  int EmbedOptions)

Parameters

FontName The installed font name
EncodingOptions 0=Identity-H
1=UniGB_UTF16_H
2=UniGB_UTF32_H
3=UniCNS_UTF16_H
EmbedOptions 0=Do not embed
1=Embed (not currently supported)

Return values

0 The Unicode font could not be added
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