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 - GetTextAscent() returns 0
  FAQ FAQ  Forum Search   Register Register  Login Login

GetTextAscent() returns 0

 Post Reply Post Reply
Author
Message
micha View Drop Down
Beginner
Beginner
Avatar

Joined: 18 Dec 11
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote micha Quote  Post ReplyReply Direct Link To This Post Topic: GetTextAscent() returns 0
    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 ?
Back to Top
edvoigt View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 Mar 11
Location: Berlin, Germany
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote edvoigt Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
fargburger View Drop Down
Beginner
Beginner


Joined: 03 Apr 12
Location: Wisconsin
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fargburger Quote  Post ReplyReply Direct Link To This Post 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.
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