#21 freetype fontsize not changed if resolution is changed


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.


  • 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

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


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks