Print Page | Close Window

AddTrueTypeSubsettedFont

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3873
Printed Date: 25 Apr 24 at 5:42AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddTrueTypeSubsettedFont
Posted By: PeterAnderko
Subject: AddTrueTypeSubsettedFont
Date 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




Replies:
Posted By: tfrost
Date 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'.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk