Opened 12 years ago

Closed 7 months ago

#9250 closed bug (fixed)

TTC font format can't be identified

Reported by: kurain Owned by: nobody
Priority: normal Milestone: R1/beta5
Component: Servers/app_server Version: R1/alpha4.1
Keywords: TTC FontManager TrueType2 Cc: linlongzhou@…
Blocked By: Blocking:
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.

Attachments (1)

Screenshot from 2024-05-05 14-53-44.png (29.5 KB ) - added by korli 7 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 by kurain, 12 years ago

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 by mshlyn, 11 years ago

Cc: linlongzhou@… added

comment:3 by mmadia, 11 years ago

Priority: highnormal

comment:4 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:5 by pulkomandy, 4 years ago

Milestone: R1R1.1

comment:6 by korli, 7 months ago

Milestone: R1.1R1/beta5
Resolution: fixed
Status: assignedclosed

Looks to me it now works correctly.

Note: See TracTickets for help on using tickets.