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
  FAQ FAQ  Forum Search   Register Register  Login Login

AddTrueTypeSubsettedFont

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


Joined: 03 Dec 20
Location: Slovakia
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote PeterAnderko Quote  Post ReplyReply Direct Link To This Post Topic: AddTrueTypeSubsettedFont
    Posted: 08 Jan 21 at 12:15PM
Hi,

how do i set subsetted font for Arial Bold?

here is example code:


TextFont:='AÁBCÈDÏEÉFGHIÍJKL¼ÅMNÒOÓÔPQRSŠTUÚVWXYÝZŽaábcèddeéfghiíjklå¾mnòoóôpqrsštuúvwxyýyž1234567890-.,;()"*/\#$&@ ';
   fid:=PDFDok.AddTrueTypeSubsettedFont('Arial[bold]',TextFont,0);
   PDFDok.SelectFont(fid);
   ffid:=PDFDok.AddFormFont(fid);

   for p:=PDFDok.FormFieldCount downto 1 do
        if PDFDok.GetFormFieldType(p)=1
           then PDFDok.SetFormFieldFont(p,ffid);



For all formfields is font only Arial no Arial Bold.
is the use of 'Arial [Bold]'  incorrect for this function?

Please help, how to do it.


Peter

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 321
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post Posted: 08 Jan 21 at 10:18PM
I have not checked this in detail: but I think the square brackets are incorrect.  I have a PDF created with QPDF and when I open it in Acrobat and press control-D to see what it is on the Fonts tab, it shows a mix of formats of font names.  But in the program I think I just named them for example 'Helvetica Bold' and 'Helvetica Condensed'.
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