Menu

#21 freetype fontsize not changed if resolution is changed

closed
nobody
None
5
2006-07-01
2005-11-22
No

I have a problem with the freetype implementation and
provide a patch for a possible solution. The problem:

A new font is loaded in plD_render_freetype_text() if
the font face has
changed or the character height. But I run into trouble
if I resize
my plot window in wxwidgets, since neither has changed
(I use the virtual-remove-hidden-line-hack), but only
the resolution (xdpi, ydpi). But in
plD_render_freetype_text() it's not checked, if the
resolution has changed.

My resolution is, that I also save the resolution and
compare it together with the font face and the
character height. This works for me (wxwidgets driver)
and I can't see a problem with other drivers.

A patch against the latest cvs (as of today) is
attached regarding this issue.

Discussion

  • Werner Smekal

    Werner Smekal - 2005-11-22

    patch for plfreetype.h/.cpp

     
  • Alan W. Irwin

    Alan W. Irwin - 2006-07-01
    • status: open --> closed
     
  • Alan W. Irwin

    Alan W. Irwin - 2006-07-01

    Logged In: YES
    user_id=15737

    CVS commit as of 2005-12-02 and included in PLplot-5.6.0
    and all subsequent versions.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.