Bug#254113: Fix for Openoffice?

2006-07-15 Thread Jan Willem Stumpel
Christian Perrier wrote:
> tags 254113 pending thanks

> I patched all sfd files, rebuilt the package and the vertical
> spacing problem is definitely over.

Thanks -- however, I am not so confident that it is 'definitely'
over. I am still a bit worried that line spacing is almost the
same, but not quite the same, as in Times New Roman and Arial
(according to what I understand now of the rules of typography,
fonts of the same point size should have the same line spacing).

Am still working on this puzzle. Maybe I'll send you another patch
request later (this may take a long time).

I saw the version now in Sid has the st ligature corrected. Great!
However, the others like ff, fl, ffi still give problems. They
give strange effects on web pages with justified text, when viewed
with Firefox. See for instance my own 'font and keyboard page':
http://www.jw-stumpel.nl/stestu.html. See what happens to words
like 'file', 'difficult', 'difference', 'Openoffice' if FreeSerif
is the display font (also when you try to select text in lines
containing such words). This is apparently a bug in Pango (not yet
reported in Debian, but it has been in Ubuntu:
https://launchpad.net/distros/ubuntu/+source/firefox/+bug/37828).
Dejavu, in the meantime, has marked its Latin ligatures as
"discretionary". Until these problems are sorted out, I suggest
the Freefonts do the same.

Regards, Jan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#254113: Fix for Openoffice?

2006-07-15 Thread Christian Perrier
> I saw the version now in Sid has the st ligature corrected. Great!
> However, the others like ff, fl, ffi still give problems. They
> give strange effects on web pages with justified text, when viewed
> with Firefox. See for instance my own 'font and keyboard page':
> http://www.jw-stumpel.nl/stestu.html. See what happens to words
> like 'file', 'difficult', 'difference', 'Openoffice' if FreeSerif
> is the display font (also when you try to select text in lines
> containing such words). This is apparently a bug in Pango (not yet
> reported in Debian, but it has been in Ubuntu:
> https://launchpad.net/distros/ubuntu/+source/firefox/+bug/37828).
> Dejavu, in the meantime, has marked its Latin ligatures as
> "discretionary". Until these problems are sorted out, I suggest
> the Freefonts do the same.


I suggest a separate bug report for this. I thinked about making the
ligatures discretionary yesterday while fixing the "st" ligature but a
few tests with gedit did not convince me that this was completely
needed (while it was obvious for "st").

)



signature.asc
Description: Digital signature


Bug#254113: Fix for Openoffice?

2006-07-14 Thread Christian Perrier
tags 254113 pending
thanks

Quoting Jan Willem Stumpel ([EMAIL PROTECTED]):
> 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.
> 


You're absolutely right.

I patched all sfd files, rebuilt the package and the vertical spacing
problem is definitely over.

I'll send the patch to upstream.




signature.asc
Description: Digital signature


Bug#254113: Fix for Openoffice?

2006-07-12 Thread Jan Willem Stumpel
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




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]