Issue 101659 - Fractional GTK UI font size is rounded down to an integer
Summary: Fractional GTK UI font size is rounded down to an integer
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 3.1 RC2
Hardware: All Unix, all
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-07 20:24 UTC by akaseorg
Modified: 2017-05-20 11:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description akaseorg 2009-05-07 20:24:22 UTC
gnome-appearance-properties (System → Preferences → Appearance) allows you to
configure a non-integer font size; on my system, I use 7.5pt.  But
OpenOffice.org applications round this down to 7pt, so all UI components end up
looking too small.

Looking at GtkSalGraphics::updateSettings,
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx, int nPointSize is computed from
nPangoHeight (which is in units of 1/1024 pt) using
  nPointHeight = nPangoHeight/PANGO_SCALE;
and stored into a Size object as a long.  Probably the Font class should be
redefined to store its size in smaller units than pt.
Comment 1 Olaf Felka 2010-01-31 08:21:09 UTC
@ pl: Something for you?
Comment 2 philipp.lohmann 2010-02-02 10:32:05 UTC
confirm
Comment 3 philipp.lohmann 2010-02-02 10:32:44 UTC
assign to the font master general
Comment 4 Marcus 2017-05-20 11:33:15 UTC
Reset assigne to the default "issues@openoffice.apache.org".