Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Wikitude SDK (Android, iOS, UWP)
Wikitude SDK Questions or Problems
Custom Font-Family
G
Gianni Inguscio
started a topic
almost 9 years ago
Hi, how can I use a custom font-family in a HtmlDrawable? How can I import it ?
Thanks a lot.
Gianni
4 Comments
Oldest First
Popular
Newest First
Sorted by
Oldest First
G
Gianni Inguscio
said
almost 9 years ago
Custom Font-Family
C
Christian Ebner
said
almost 9 years ago
Hello Gianni,
this should work like in HTML:
<div style="font-family:'Comic Sans MS', cursive, sans-serif;">
Hello Comic Font-Family
</div>
Chris
G
Gianni Inguscio
said
almost 9 years ago
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.
C
Christian Ebner
said
almost 9 years ago
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
More topics in
Wikitude SDK Questions or Problems
Instatiation of WTArchitectView compile errors
Point of interest - native iOS
Slider
Camera lagging / slow in native Swift application
Create a web service
N-th ImageDrawable not displayed
Radar Example
stop defaultlocationmanager and use architectview.injectlocation ios 10
WTC Size Limit
AngularJS and wikitude
See all 3870 topics
© 2021 Wikitude, a Qualcomm company
Gianni Inguscio
Thanks a lot.
Gianni