0

I want to use the font Air Soft Condensed heavy in Tilemill. I placed the font file Positype-AirSoftCond-Heavy.otf into the font directory of my project:

/home/<user>/Documents/MapBox/<project>/fonts/

The palette.mms file has the line

 Map { font-directory: url(./fonts); }

How can I reference now my font to use it?

  • Just type its name into text-face-name CSS property. Does it not work? – Ilja Zverev Jun 17 '14 at 16:36
  • Oh yeah...how do I find it out the proper font names? I only now the font file names. – ustroetz Jun 18 '14 at 9:53
  • Press the "A" button at the left bottom edge, right above layers icon. – Ilja Zverev Jun 19 '14 at 10:26
  • Yeah the fonts don't show up there. Even-though they are in the font directory of the tilemill project. – ustroetz Jun 19 '14 at 11:33
  • Try fc-scan --format "%{fullname}\n" /home/.../fonts/fontname.ttf – Ilja Zverev Jun 20 '14 at 8:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.