Want to embed a font but cannot convert from Font

2019-04-07 04:40发布

问题:

I am using FontSquirrel font generator to try to generate the embedded font files so that I can use the @font-face in css to embed for a Website.

However, the font files I have (on Mac) are as follows and are greyed out and it is not possible to select them to convert on FontSquirrel or other converters (i.e. they don't seem to be a raw file type I can use to embed):

  • PostScript Type 1 Outline Font
  • Font Suitcase

Can I somehow convert these to .otf or .ttf or does anyone know of another embedding method.

Thanks!

回答1:

Have you tried FontForge?

The GUI is horrible, and it needs X11 to run on Mac, but it's really a nice tool to convert any type of font.



回答2:

Couldn't get that solution to work on Mavericks... found this great guide: http://macthoughts.net/20131112-373 - it's free, easy and works perfectly.



回答3:

As of at least version 0.4.1 of DFontSplitter, the Mac version has the ability to split TrueType Collection (TTC) and Font Suitcase files in addition to Dfont files.



回答4:

I was also getting .bdf files output when I converted the font suitcase file (.ffil) to .dfont and then used dfontsplitter.

However, I found a solution to get around this. Instead of converting the suitcase file (.ffil) to .dfont, I converted the individual fonts (.lwfn) that went with the suitcase into .dfont files.

Then, when I used dfontsplitter on these, it gave me a .pfb file for each of the individual fonts. Then, I used an online service at http://www.freefontconverter.com/ to convert the .pfb files into fully functional .ttf files with no errors!