Forum How do I...?

Custom Fonts

rsands
So i decided to try and copy Lucidasands.ttf from windows fonts to /usr/share/fonts/


all is fine...server can see it using fc-list

i went to fonts.css and entered

@font-face {
font-family: Lucida Sans;
font-style: normal;
font-weight: normal;
src: url("/usr/share/fonts/LucidaSansRegular.ttf")
}

@font-face {
font-family: Lucida Sans;
font-style: normal;
font-weight: bold;
src: url("/usr/share/fonts/Lsansd.TTF")
}

@font-face {
font-family: Lucida Sans;
font-style: italic;
font-weight: normal;
src: url("/usr/share/fonts/Lsansi.TTF")
}

@font-face {
font-family: Lucida Sans;
font-style: italic;
font-weight: bold;
src: url("/usr/share/fonts/Lsansdi.TTF")
}



generate a pdf and it replaces it with a default font? any ideas?


Thanks

Richard
rsands
seems like the font wont allow embedding.....
rsands
ok why is princexml not allowing this to be installed if an editable type font can be embedded?

http://www.microsoft.com/typography/RedistributionFAQ.mspx
mikeday
Is Prince giving a warning message relating to this font? It could be that the embedding bits are set to a value that Prince does not recognise as being embeddable.