[Libreoffice-bugs] [Bug 38683] Japanese fonts rendered with unusually tall line height

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 28 13:00:55 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=38683

--- Comment #9 from Khaled Hosny <khaledhosny at eglug.org> 2011-08-28 13:00:56 PDT ---
I think I've found the root of this, in
vcl/unx/generic/glyphs/gcach_ftyp.cxx:1042 there is a comment about line height
in "asian" fonts being too small and reference to some bug ids, and it tries to
"fix" this by adding extra line height for fonts with CJK support. This IMO is
brain damaged, it is either the font is broken and need to be fixed or the
behaviour is desired and should be kept, software should not play such tricks
to "fix" fonts.

The other part of the issue is that LibreOffice uses OS/2 WinAscent/WinDescent
to set line spacing, which again is wrong as those values are intended for
clipping and typoAscender/typoDescender/typoLineGap should be used instead. It
seems those fonts have WinAscent/WinDescent values that are larger than
typoAscender/typoDescender (which is perfectly OK) which adds to the increased
line spacing.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Libreoffice-bugs mailing list