Closed Bug 208213 Opened 21 years ago Closed 13 years ago

GTK:FT2 should use fontEncoding.properties file instead of hardcoding them

Categories

(Core Graveyard :: GFX: Gtk, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jshin1987, Assigned: jshin1987)

References

(Blocks 1 open bug)

Details

(Keywords: intl)

Attachments

(1 file, 4 obsolete files)

While investigating the possibility of supporting wide custom font encodings in
GFX:FT2 (a la bug 176290, bug 177877) I realized that nsFreeType.cpp has the
hard-coded list of fonts and their font-encodings. This should be factored out
into fontEncoding.properties file as is done for Win,Mac and Xft. 

Applications of this include bug 204039, bug 203052, bug 204286, bug 176315.
Attached patch work in progress (obsolete) — Splinter Review
It more or less works, but needs some factoring (and a couple of problems to
fix). I just want to put an interim version somewhere safer than my machine.


In this patch, I went beyond making FT2 code refer to fontEncoding.properties
file (instead of hard-coded arrays). I enabled FT2 code to deal with 'wide
custom' fonts as well as 'narrow' custom fonts. The latter is supported by the
existing code and is for MathML while the former is for CTL support.
Depends on: 212400
One line patch for bug 212400 fixed a seemingly hard-to-understand problem 
(with 'the' Korean custom font working while other custom fonts not working).  
 
Status: NEW → ASSIGNED
Blocks: 179946
Attachment #127416 - Attachment is obsolete: true
Attached patch patch v3 (obsolete) — Splinter Review
I shouldn't have aimed too high :-).  It took a lot more tweaking than I
expected.
With this patch, I fixed bug 179946 and bug 195038 (see also bug 94319) as well
as this bug. I kinda littered files with debug statements and I'll clean them
up later.
In the meantime, I'm uploading this for the peace of mind :-)
Attachment #127710 - Attachment is obsolete: true
Attached patch a new patch (obsolete) — Splinter Review
basically the same as attachment 129347 [details] [diff] [review] with a bit more extensive comments
Attachment #129347 - Attachment is obsolete: true
Target Milestone: --- → mozilla1.6alpha
Attachment #131648 - Flags: superreview?(rbs)
Attachment #131648 - Flags: review?(bstell)
Brian and Masaki,
Can either of your review the latest patch and move this forward? If both of you
can't at the moment, who would be qualified to review it(someone at Sun)? Thanks.
Blocks: 33127
Pete, can you review the latest patch? 
*** Bug 226121 has been marked as a duplicate of this bug. ***
bryner, would you care to take a look? It's long ! I have to update the patch
against the trunk (not much change, though) and perhaps have to comment more. 
Comment on attachment 131648 [details] [diff] [review]
a new patch

Removing the sr request to simplify my queue. Care to re-ask once you get the
r.
Attachment #131648 - Flags: superreview?(rbs)
Comment on attachment 131648 [details] [diff] [review]
a new patch

I'm making a new patch against the trunk.
Attachment #131648 - Flags: review?(bstell)
I updated attachment 131648 [details] [diff] [review] to the trunk (+ my patch for nsAutoBuffer that will
go in as soon as the HEAD is opened up for 1.7beta development)

I haven't yet managed to test it because a new version of freetype library
doesn't have FT_Image_Cache* APIs (bug 234035).
Attachment #131648 - Attachment is obsolete: true
jshin, is still needed after 4 years?
QA Contact: ian → gtk
Target Milestone: mozilla1.6alpha → ---
Product: Core → Core Graveyard
I am inclined to think this has been rendered moot by subsequent changes, in that I cannot find the offending hardwired table in the code nor can I find any fontEncoding.properties files.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: