Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
AddTrueTypeSubsettedFont Issue |
Post Reply ![]() |
Author | |
DJen ![]() Beginner ![]() Joined: 01 Jun 15 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 01 Jun 15 at 11:04PM |
Having some difficulties using AddTrueTypeSubsettedFont and drawtext to write Unicode characters. From my understanding the following code, much of which came from the demo app should work but doesn’t. Nothing is rendered. Right now I'm just running this in the demo app included with the library. Anyone have any ideas? I've also tried:
/* Embed and subset a TrueType font within a PDF */ // Use the AddTrueTypeFont function to add a font to // the default blank document and get the return // value which is the font ID. fontID1 = QP.AddTrueTypeSubsettedFont("Arial",
"你好", 0); // Select the font using its font ID QP.SelectFont(fontID1); // Draw some text onto the document to see if // everything is working OK. QP.DrawText(100, 700, "你好"); // Save the new document to the output folder. QP.SaveToFile(GetOutputFolder() +
"embedded_subsetted_font.pdf"); // This line will automatically display the PDF in the PDF
Preview tab. Preview.OpenFromFile(GetOutputFolder() +
"embedded_subsetted_font.pdf"); |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store