custom-font


use custom fonts in tilemill?


It seems like this can be done... but all the suggestions I've seen online aren't working for me. I have a customFont.ttf tile that I'm putting in this dir: 'home/greg/Documents/MapBox/project/myproject/customFont.ttf'
Then I'm using this code:
Map { font-directory: url(customFont.ttf); }
or
Map { font-directory: url(''); }
or
Map { font-directory: url(fonts/customFont.ttf); }
but nothing is working. I just get en error message such as:
"Invalid value for text-face-name, the type font is expected. comicSansMs, Arial Regular (of type string) was given. (line 71)"
any tips?
place your fonts in the folder app/assets/fonts, lib/assets/fonts or vendor/assets/fonts
If Rails 4+, you can only place your fonts in the folder app/assets/fonts.
In css:
#font-face {
font-family: 'customFont';
src:url('customFont.ttf');
font-weight: normal;
font-style: normal;
}

Related Links

use custom fonts in tilemill?
CSS custom font: <b> works but font-weight:bold does not
How do i add custom fonts in the font awesome plugin??? Can it be done using EOT file?

Categories

HOME
xml
kentico
checkstyle
phpmyadmin
rsa
oracle-apex-5
composite-primary-key
spring-data-redis
opendj
google-apps
cq5
x264
angularfire2
webix
watson-conversation
rtf
fileserver
red5
wolframalpha
bourbon
gmm
replication
jboss6.x
linked-data
8051
spotipy
winexe
ceylon
browser-sync
google-cast
python-2.6
sim-toolkit
apic
git-rewrite-history
dm-script
signals-slots
trigonometry
dcmtk
wmp
android-checkbox
facebook-social-plugins
optimizely
jide
serde
aquamacs
er-diagram
oozie-coordinator
mouseleave
gets
pure-css
hadoop-2.7.2
jodd
firebase-security
respondcms
qiime
kango-framework
createprocess
realsense
maybe
cgi-bin
.bash-profile
zxspectrum
big-ip
webfinger
raygun
ora-00904
ray
decoupling
eclipse-kepler
ie8-compatibility-mode
mbunit
tlf
abstract-data-type
android-icons
alice
argouml
jdb
infobright
virtualpathprovider
twitterizer
metaweblog
dot-emacs
django-piston
cldc
asynchronous-wcf-call
scrubyt
software-lifecycle
wysiwym
application-planning
sqlobject
lemmatization
mathematical-typesetting
image-capture

Resources

Encrypt Message