Opened 6 years ago

Last modified 2 years ago

#9250 assigned bug

TTC font format can't be identified

Reported by: kurain Owned by: nobody
Priority: normal Milestone: R1
Component: Servers/app_server Version: R1/alpha4.1
Keywords: TTC FontManager TrueType2 Cc: linlongzhou@…
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I have tried wqy-microhei.ttc font in Haiku. but it can't be identified. and if I change its suffix to .ttf, it can be found, but there is only one family in it, which actually has two families, one is plain font, and another is fixed font.

now what haiku uses in system is wqy-microhei.ttf, which is the same as wqy-microhei.ttc.

Change History (4)

comment:1 Changed 6 years ago by kurain

And I have checked our FontManager.cpp, which has something incorrect when it's loading fonts. Also I have found that agg also has the similar functions, which is used for loading fonts, which should be correct.

As for one font file, it may have one or more faces. we should add some codes to handle this. just like how agg handles.

detailed code, as below: http://haiku.it.su.se:8180/source/xref/src/libs/agg/font_freetype/agg_font_freetype.cpp#603 http://haiku.it.su.se:8180/source/xref/src/servers/app/font/FontManager.cpp#573

comment:2 Changed 6 years ago by mshlyn

Cc: linlongzhou@… added

comment:3 Changed 5 years ago by mmadia

Priority: highnormal

comment:4 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned
Note: See TracTickets for help on using tickets.