Print Page | Close Window

Subsetting of true type fonts

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2013
Printed Date: 23 Nov 24 at 4:36AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Subsetting of true type fonts
Posted By: peterbh
Subject: Subsetting of true type fonts
Date Posted: 26 Oct 11 at 5:58AM

In our existing postscript based product we can create a series of subset fonts based on a single true/opentype font. I can envisage doing something similar in PDF by Adding a truetype font and then creating a set of subset fonts using CreateNewObject and SetObjectFromString. Is there any way then to add the font created into the Font entry in the resources dictionary ?

TIA
Peter



Replies:
Posted By: AndrewC
Date Posted: 26 Oct 11 at 7:26AM

Have you looked at the following functions that have been added in QPL 8.11 and 8.12 respectively.

http://www.quickpdflibrary.com/help/quickpdf/AddTrueTypeSubsettedFont.php - http://www.quickpdflibrary.com/help/quickpdf/AddTrueTypeSubsettedFont.php
http://www.quickpdflibrary.com/help/quickpdf/AddOpenTypeFontFromFile.php - http://www.quickpdflibrary.com/help/quickpdf/AddOpenTypeFontFromFile.php

Andrew.


Posted By: peterbh
Date Posted: 26 Oct 11 at 11:24PM
AddOpenTypeFontFromFile doesn't appear in my version of 8.12, but that's a separate matter as it is said to be identical to AddTrueTypeFontFromFile which includes a True Type Font, but defaults to WinAnsiEncoding, presumably I can select a different encoding, but the choice is limited.
AddTrueTypeSubsettedFont is close to what I require, but I presume that the string of characters is Unicoded which will not work with some fonts that include glyphs that do not have Unicode values (some east asian and other scripts have multiple forms of a unicode character, only one of the forms can appear in the cmap)  So I actually need to be able to select the subset based on glyph ID's
Peter



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