Print Page | Close Window

Itty bitty FitTextBox

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=2234
Printed Date: 01 Jul 25 at 1:39PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Itty bitty FitTextBox
Posted By: fargburger
Subject: Itty bitty FitTextBox
Date Posted: 13 Apr 12 at 9:05PM
Strangest thing, if I do a FitTextBox(0,0, 0.0, 5.0, 0.18, 'Some Text', 0) and my font size is 10, I get really really tiny text. 

(actually any box height less than 0.195 or so makes this happen)

It's like QuickPDF can't shrink text down lower than pico-sized.

If I make the font size bigger or smaller it scales properly. 


Here's my work around for now:

        if (FontInfo.FontSize = 10) and
            (Height < 0.2) then
          Height := 0.2;

But I figured I should tell someone.

(using Delphi XE2, QuickPDF 8.1.4 [not the Update 4 version])

*Edited because I thought this was only for Arial, but it's happened on other fonts*



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