Debenu Quick PDF logo

AddUnicodeFontFromFile

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 13.12.

Description

Experimental function to add a 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.AddUnicodeFontFromFile(FontFileName: WideString; 
  EncodingOptions, EmbedOptions: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddUnicodeFontFromFile(
  FontFileName As String, EncodingOptions As Long,
  EmbedOptions As Long) As Long

DLL

int DPLAddUnicodeFontFromFile(int InstanceID, wchar_t * FontFileName,
  int EncodingOptions, int EmbedOptions)

Parameters

FontFileName The full path and file name of the font file to add
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