Closed
Bug 493505
Opened 16 years ago
Closed 16 years ago
Fennec on WinMo can't resolve font name aliases properly
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 488626
People
(Reporter: ashie, Unassigned)
Details
(Keywords: fonts)
Attachments
(1 file, 2 obsolete files)
|
6.19 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Build Identifier:
I noticed that fennec can't recognize Japanese font names on Japanese ennvironemnt.
For example, IPA font (http://ossipedia.ipa.go.jp/ipafont/fontspec.html) has 2 names for a same font face:
* IPAPGothic
* IPA Pゴシック
But fennec can only recognize the former one (IPAPGothic) on certain situation.
Reproducible: Always
Steps to Reproduce:
1. Install the IPAPGothic font to Japanese WinMo system.
2. Change the system font to "IPA Pゴシック" by using PocketHand (http://smart-pda.net/useful7+index.id+7.htm) or other registry editors.
3. Launch the fennec and visit http://www.yahoo.co.jp/.
Actual Results:
The program crashes on startup because it can't find any fonts at http://hg.mozilla.org/mozilla-central/file/1a0cd8aa1bfb/gfx/thebes/src/gfxFT2Fonts.cpp#l244.
Expected Results:
The Fennec launches and it shows Japanese characters using IPAPGothic font.
This bug is originaly reported at https://bugzilla.mozilla.org/show_bug.cgi?id=489752.
Fennec on WinMo manages system fonts by using the Freetype, but sometimes it uses Win32 API to resolve font names:
* http://hg.mozilla.org/mozilla-central/file/1a0cd8aa1bfb/gfx/thebes/src/gfxFT2Fonts.cpp#l244
* http://hg.mozilla.org/mozilla-central/file/1a0cd8aa1bfb/gfx/thebes/src/gfxWindowsPlatform.cpp#l500
* http://hg.mozilla.org/mozilla-central/file/1a0cd8aa1bfb/gfx/thebes/src/gfxWindowsPlatform.cpp#l350
The Freetype manages fonts using ASCII font names, but Win32 APIs like EnumFontFamilies will return Japanese font names on Japanese environment. This will cause conflicts.
Please notice that it may not reproduced on English environment because Win32 APIs will return ASCII font name for the face to resolve alias names.
| Reporter | ||
Updated•16 years ago
|
| Reporter | ||
Comment 1•16 years ago
|
||
I think Fennec should use Freetype to resolve font name aliases to avoid such conflicts.
I made a patch for this issue. It stores aliase names for each fonts at startup using FT_Get_Sfnt_Name.
Updated•16 years ago
|
Component: Windows Mobile → GFX: Thebes
Product: Fennec → Core
QA Contact: mobile-windows → thebes
| Reporter | ||
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Comment 3•16 years ago
|
||
Also store TT_NAME_ID_FULL_NAME.
Attachment #377995 -
Attachment is obsolete: true
| Reporter | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•