[Pkg-fonts-bugs] Bug#254113: Fix for Openoffice?

Jan Willem Stumpel jstumpel at planet.nl
Wed Jul 12 08:38:48 UTC 2006


Openoffice is originally a Windows application which has somehow
been ported to Linux. So it probably uses the Windows method of
determining line spacing (see Fontforge FAQ, "How do I set the
line spacing on a font?"). This means using the OS2WinAscent and
OS2WinDescent values. In Times New Roman and Arial I found that
(in the .sfd version of the fonts):

OS2WinAscent value  = HheadAscent value;
OS2WinDescent value = negative of HheadDescent value.

So I tried this on the Freefonts also (by default, both values are
zero in the Freefonts). Success! No more crazy line spacing in
Openoffice. So far I have not found that this causes any problems
with "real" Linux programs like Mozilla or Abiword.

Of course a little bit more testing is needed, and a clear
explanation of why this works, but I think this is close to the
real solution.

Regards, Jan







More information about the Pkg-fonts-bugs mailing list