Issue 19614 - OO's libfreetype leads to mis-aligned columns
Summary: OO's libfreetype leads to mis-aligned columns
Status: CLOSED DUPLICATE of issue 52026
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: hdu@apache.org
QA Contact: issues@sc
URL:
Keywords:
Depends on: 26679
Blocks:
  Show dependency tree
 
Reported: 2003-09-15 21:36 UTC by Peter
Modified: 2008-09-19 12:21 UTC (History)
1 user (show)

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


Attachments
rendered with OO's libfreetype (8.65 KB, image/png)
2003-09-15 21:37 UTC, Peter
no flags Details
rendered with version 2.1.4 (9.56 KB, image/png)
2003-09-15 21:38 UTC, Peter
no flags Details
Spreadsheet example (12.73 KB, application/octet-stream)
2003-09-28 00:26 UTC, Peter
no flags Details
internally generated PDF (55.99 KB, application/pdf)
2003-09-28 00:28 UTC, Peter
no flags Details
screenshot of OO spreadsheet (11.47 KB, image/png)
2003-10-25 15:41 UTC, Peter
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Peter 2003-09-15 21:36:08 UTC
Each digit (0-9) in a font have the same width. Unfortunately
this is not the case, when OO's spread-sheet application
displays numbers on the screen. Find attached two screen shots, 
one with OO's own libfreetype and the other one with my locale
version 2.1.4 one. In the latter, all columns are properly
aligned.
Comment 1 Peter 2003-09-15 21:37:07 UTC
Created attachment 9345 [details]
rendered with OO's libfreetype
Comment 2 Peter 2003-09-15 21:38:16 UTC
Created attachment 9346 [details]
rendered with version 2.1.4
Comment 3 frank 2003-09-16 08:56:08 UTC
Hi Niklas,

is it yours ?

If not re-assign it to the responsible developer.

Frank
Comment 4 niklas.nebel 2003-09-19 15:25:57 UTC
Doesn't sound like a spreadsheet specific problem.
Comment 5 hdu@apache.org 2003-09-26 16:01:11 UTC
I cannot recreate this yet.
Can you please attach the Calc document or even better a small excerpt.
Also PDF export of this document would be very interesting.
Comment 6 Peter 2003-09-28 00:26:53 UTC
Created attachment 9741 [details]
Spreadsheet example
Comment 7 Peter 2003-09-28 00:28:02 UTC
Created attachment 9742 [details]
internally generated PDF
Comment 8 hdu@apache.org 2003-09-29 09:40:41 UTC
In the PDF everything is perfectly aligned, isn't it?
Was it created with OOo's libfreetype or the system's libfreetype?
Comment 9 hdu@apache.org 2003-10-08 15:20:09 UTC
HDU->FST: Please help me to recreate the problem.
The "misalignment of dots and commas" you saw were an optical
illusion, because a dot next to a column of e.g. '7' looks differently
aligned from a dot next to an '8'.
Comment 10 frank 2003-10-08 15:44:18 UTC
Hi Peter,

please try it again with the currently available OOo1.1 Final.


If the problem persist, please attach both used libfreetype's and give
us a description of your system, e.g. what Distribution do you use and
which X-Server and Graphics adapter.

Frank
Comment 11 frank 2003-10-24 14:28:34 UTC
No response from User ao I assume the problem doesn't exist any longer.

Frank
Comment 12 frank 2003-10-24 14:29:05 UTC
closed worksforme
Comment 13 Peter 2003-10-25 15:40:45 UTC
Sorry for responding so lately.

The problem persists in OO 1.1

- Libfreetype is that of OO (checked with lsof)
- XFree86 4.2.0, 1280x1024, 24 bit Release Date: 23 January 2002
- SuSE 7.3, Kernel 2.4.16
- Matrox MGA G200 AGP rev 3
Comment 14 Peter 2003-10-25 15:41:36 UTC
Created attachment 10637 [details]
screenshot of OO spreadsheet
Comment 15 frank 2003-10-27 08:14:55 UTC
Hi Herbert,

please have a look.

Frank
Comment 16 hdu@apache.org 2003-11-11 13:36:58 UTC
It seems freetype's autohinter calculates the widths slightly
differently. It doesn't have much of a chance to match it exactly to
the pixel, if it doesn't have a special heuristic like: "If the digits
have the same design width keep their width in sync when autohinting"
I'm considering to develop a patch for this enhancement.
Comment 17 Peter 2003-11-11 16:10:12 UTC
Do you really think it is necessary to develope a patch?
I mean you can simply use recent freetype2 lib. It
works for me with 2.1.4 and even with 2.1.5 and 2.1.5-dc
for quite some time.
Comment 18 hdu@apache.org 2003-11-11 16:20:54 UTC
We are using 2.1.4! The difference may be that OOo ships with the
autohinter version. Please what the two different libraries report for
"objdump -T ????/libfreetype.so.6 | fgrep TT_RunIns"
Comment 19 Peter 2003-11-11 21:31:03 UTC
objdump reports

00049ff0 g    DF .text  00000fb6  Base        TT_RunIns

on my 2.1.5-dc and nothing on OO's libfreetype. I've compiled
libfreetype (2.1.4, wich works OK) with 

#define  TT_CONFIG_OPTION_BYTECODE_INTERPRETER (in ftoption.h)

(In 2.1.5-dc there is are additional defines:
#define FT_CONFIG_FORCE_AUTOHINT
#define FT_CONFIG_SMOOTH_HINTING 
)
Comment 20 hdu@apache.org 2003-11-12 08:26:29 UTC
That is what I assumed. When you read the comments in the neighborhood
of the freetype configuration patch you just mentioned, you'll
understand why we don't do the same.

As I said, the most promising solution is to use the heuristic I
proposed in freetype's autohinter.
Comment 21 Martin Hollmichel 2004-05-28 17:49:34 UTC
according to the announcement on releases
(http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7503) this issue
will be re-targeted to OOo Later.
Comment 22 hdu@apache.org 2008-09-19 12:20:29 UTC
With the change for issue 52026 this is no longer a problem.

*** This issue has been marked as a duplicate of 52026 ***
Comment 23 hdu@apache.org 2008-09-19 12:21:07 UTC
Closing resolved issue.