语言

Menu
Sites
Language
How to wire up a font on the wearable?

An HTML/JS/Angular/GearS app. has been built/running and there is a requirement to use a specific font call avenir for each view.  After vigorous searching, no examples have been found to demonstrate using an alternative font nor has there been success in implementing the use of the avenir font.  

Does the wearable SDK support any alternative font(s) and where would a working example be found?

The example below works in a standard HTML Chrome web-app.

Thanks in advance!

 

@font-face {

  font-family: AvenirNext-Regular;

  url('AvenirNext-Reg.woff') format('woff');

}

* {

    font-family: AvenirNext-Regular,Tizen,Samsung Sans,Helvetica !important;

}

 

 

响应

1 回复
AVSukhov

Hello,

Info about CSS3 Text Effects you can found in documentation:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.appprogramming/html/guide/w3c_guide/dom_guide/text_effects_css3.htm

Tutorial using WOFF file format:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.appprogramming/html/tutorials/w3c_tutorial/dom_tutorial/using_woff.htm