Print Page | Close Window

GetTextAscent() returns 0

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=2191
Printed Date: 13 Jun 25 at 11:29AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GetTextAscent() returns 0
Posted By: micha
Subject: GetTextAscent() returns 0
Date Posted: 14 Mar 12 at 3:23PM
Hi
im using the function GetTextAscent() to calculate the fonts height. on some computers it works properly and on others it returns 0 for the same code. mostly on 32bit computers with Win XP.
it happens with font Ariel Narrow Bold.
does any one have an idea why ?



Replies:
Posted By: edvoigt
Date Posted: 14 Mar 12 at 4:44PM
Hi micha,

if it works on one PC and on other not, the task is to find the difference.

Do you check the return-value of AddTrueTypeFontFromFile ('Arial Narrow Bold')?


Werner



Posted By: fargburger
Date Posted: 03 Apr 12 at 6:01PM
Arial Narrow Bold will only be on your computer if you've got MS Office.  We had that problem recently. I think, however, that it still works when we use 'Arial Narrow [bold]' the only difference is that Arial Narrow is substituted with Arial and our reports look all goofy. 

Regardless, you're probably going to want to embed the font, so if you can't embed it and Adobe gives you a warning saying it can't find the font, then you've got something to go off of.



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