Bug 20600
| Summary: | css @font-face does not process SFNT bitmap ttf properly | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Qianqian Fang <fangqq> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | macpherson |
| Priority: | P2 | ||
| Version: | 525.x (Safari 3.1) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| URL: | http://wenq.org/unihan/kangxi_zh2.pl | ||
Qianqian Fang
I implemented an CSS @font-face rule in the following web page:
http://wenq.org/unihan/kangxi_zh2.pl
where the css file is located at
http://wenq.org/webfont/wqy-bsong-13px.css
It specified a truetype font (wqy-bsong-13px.ttf)
to display Chinese characters. This truetype font is
an SFNT wrapper of a single-strike bitmap font (at 10pt),
i.e. a truetype font that has only embedded bitmaps.
I created this font using FontForge, and it works fine
with FreeType2, and can be properly opened in various
font editing software (such as FontCreator and Fontforge).
Expected results: all Chinese characters are displayed by
the bitmap glyphs from this SFNT ttf font.
Actual results: all Chinese characters are blank, seems
webkit does not recognize the embedded bitmaps and try to
use the blank vector glyphs instead.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Qianqian Fang
one more comment on my motivation: as all of you know, Chinese (or CJK) fonts are huge, they can easily be over 10M in sizes, making it more difficult to embed in web pages. However, high quality Chinese screen display traditionally is achieved by embedding hand-tuned bitmaps. Creating a small truetype that uses only the hand-tuned bitmap seems to be a highly desired way of making Chinese (or CJK) webpages portable and viewed universally.
Luke Macpherson
Bug appears to be obsolete. Marking as wontfix.