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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - AddTrueTypeSubsettedFont Issue
  FAQ FAQ  Forum Search   Register Register  Login Login

AddTrueTypeSubsettedFont Issue

 Post Reply Post Reply
Author
Message
DJen View Drop Down
Beginner
Beginner


Joined: 01 Jun 15
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote DJen Quote  Post ReplyReply Direct Link To This Post Topic: AddTrueTypeSubsettedFont Issue
    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:

fontID1 = QP.AddTrueTypeSubsettedFont("Arial", "", 4);

 

 

 

 

 

/* 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");

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store