Hi Alan,

thank you for the report. I forgot to use the fontScale variable,  
although I calculate it correctly. I fixed some other minor problems  
with the pdf driver and the superscripts/subscript constant size issue  
should be fixed now. There are still some other problems, since e.g.  
example 24 segfaults. The pdf driver needs to be added to the test  
scripts.

Regards,
Werner

On Aug 21, 2009, at 5:02 PM, Alan W. Irwin wrote:

> Hi Werner:
>
> If _after_ a build you run
>
> examples/python/test_superscript_subscript.py -dev pdf -o test.pdf
>
> in the build tree, you will see that the superscript/subscript offset
> results are probably okay (if compared with -dev xwin results), but  
> the font
> sizes remain constant with the superscript/subscript level 0 sizes.   
> This
> constant font size issue is confirmed in pdf.c where it appears
> dev->fontScale is currently calculated but never actually used to  
> scale the
> font size.
>
> Would you be willing to deal with this issue?  I was thinking of  
> doing that
> myself, but I am having trouble following the pdf code logic for  
> font size.
> The questions I am having difficulty with are the following:
>
> * Why is dev->textWidth set after it is used in PSDrawTextToCanvas?
>
> * Should dev->textWidth and dev->textHeight be globally scaled by
> dev->fontScale (for their use as an argument to HPDF_Page_Concat) or  
> should
> just the dev->textWidth argument of HPDF_Page_MoveTextPos be scaled by
> dev->fontScale?
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and  
> Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state  
> implementation
> for stellar interiors (freeeos.sf.net); PLplot scientific plotting  
> software
> package (plplot.org); the libLASi project (unifont.org/lasi); the  
> Loads of
> Linux Links project (loll.sf.net); and the Linux Brochure Project
> (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________


--
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to