Looking for the fonts directory that TileMill uses

Douglas Smith's Avatar

Douglas Smith

17 Nov, 2011 02:55 AM via web

Hi,

I'm new to TileMill but I have done a lot of searching and snooping around this discussion forum and generally on the web to help with my issue. I'm trying to override the fonts that are used in TileMill, but I can't even figure out where TileMill is getting the allowable font list from. I've seen other posts that says it uses the system directories for fonts on MacOS (like Library/Fonts, etc) but when I try to edit a labels.mss file to use a different font, it gives me an "invalid value for text-face-name, a valid font is expected" error. I've tried to use a font from every font directory on my Mac as a test. I've tried to insert a local fonts folder in the Projects/Project Name directory. I've tried dropping .ttf files in the actual app package. Nothing works.

However, when I try a font that I've found other use in sample .mss files, it does appear to work. Trebuchet MS Regular, for example. But I can't tell where TileMill is getting that font from or why this is a valid font and others are not.

Please help. Thanks

  1. Support Staff 2 Posted by Tom MacWright on 26 Nov, 2011 06:47 PM

    Tom MacWright's Avatar

    Have you tried adding fonts with Font Book on OSX? That's the standard way to add system-wide fonts.

  2. Support Staff 3 Posted by AJ on 26 Nov, 2011 08:00 PM

    AJ's Avatar

    If you open up the font list by clicking the 'A' icon at the top-right of the editor do you see the fonts you are trying to use?

    The problem may be that, unlike CSS where you may specify only the font family, Carto requires you to explicitly specify the particular font and style. For example "Arial" would be invalid - you must specify "Arial Regular", "Arial Bold", etc. Are you doing this?

  3. Tom MacWright closed this discussion on 28 Jan, 2012 11:45 PM.

Comments are currently closed for this discussion. You can start a new one.