Start a new topic

Custom Font-Family

Hi, how can I use a custom font-family in a HtmlDrawable? How can I import it ?
Thanks a lot.
Gianni

Custom Font-Family

Hello Gianni,

this should work like in HTML:

<div style="font-family:'Comic Sans MS', cursive, sans-serif;">
Hello Comic Font-Family
</div>

 

Chris
Hi, thank you very much... but if I have to use a non-standard font how can I add the tff file?
Thank u again.
Gianni.

Again this should work with CSS:

<style type="text/css">
@font-face {
font-family: "My Custom Font";
src: url(http://www.myurl.com/myfont.ttf) format("truetype");
}
p.customfont {
font-family: "My Custom Font", Verdana, Tahoma;
}
</style>
<div class="customfont">Hello Custom Font!</div>

 
Login or Signup to post a comment