Using OS 9 resource fork fonts in CSS with @font-face

后端 未结 3 735
盖世英雄少女心
盖世英雄少女心 2020-12-25 08:50

I have some old OS 9 fonts which contain the font data in the resource fork. When I try to link such a font in a @font-face and open up the HTML in a browser, the text still

3条回答
  •  Happy的楠姐
    2020-12-25 09:29

    Font Suitcases can potentially hold 2 different kinds of fonts: bitmap fonts and TrueType fonts. Bitmap fonts would be 'NFNT' resources along with the necessary 'FOND' (font family information). On the other hand, TrueType fonts would be 'sfnt' resource entries along with the necessary 'FOND' (font family information). Normally, font suitcases that hold bitmap font data are only one half of the font; to be usable you need to have the additional PostScript Outline font files (these will have an LWFN icon).

    Otherwise, the font suitcase can represent a TrueType font, which compared to a "PostScript Type 1 Font Suitcase", is truly self-contained.

    To convert from a resource-file-based Mac TrueType font to a Windows TrueType font, you just need to extract the 'sfnt' resource entries).

    Since Rosetta is no more, I'm without Resorcerer, so I've managed to whip up a barebones resource file editor.

    http://www.markdouma.com/developer/ResourceFinagler.zip

    I just added a few lines so that you can now select the individual 'sfnt' resources like shown in the image below, and drag them to the Finder to create the individual Windows TrueType fonts.

    enter image description here

    enter image description here

提交回复
热议问题