Quick PDF logo

AddCJKFont

Text, Fonts

Version history

This function was introduced in Quick PDF Library version 7.11.

Description

Adds a CJK (Chinese Japanese Korean) font to the PDF document.

At present, the only supported CJK font is the Japanese "HeiseiKakuGo-W5" font.

When a CJK font is selected, all text passed into the library for output onto the page must be in UTF-16 format. For the ActiveX edition all text parameters are already UTF-16 strings so no change is necessary. For the Delphi and DLL editions all text parameters must be passed through the ToPDFUnicode function.

Syntax

Delphi

function TQuickPDF0813.AddCJKFont(CJKFontID: Integer): Integer;

ActiveX

Function QuickPDF0813.PDFLibrary::AddCJKFont(CJKFontID As Long) As Long

DLL

int QuickPDFAddCJKFont(int InstanceID, int CJKFontID)

Parameters

CJKFontID 1 = HeiseiKakuGo-W5
2 = HeiseiKakuGo-W5 (Bold)
3 = HeiseiKakuGo-W5 (Bold Italic)
4 = HeiseiKakuGo-W5 (Italic)

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum