语言

Menu
Sites
Language
Why google fonts were not applyed in tizen phone?

In tizen simulator the fonts were applyed well.

But the fonts not work in the phone.

How can I apply the google fonts in tizen phone..?

Ah.. Korean not work I think... How can I apply the fonts on korean?

编辑者为: 명훈 심 03 9月, 2018
查看选择的答案

响应

1 回复
Mark as answer
Armaan-Ul- Islam

Download and Add the font to your tizen web project. This will package the font with the tizen web app.

Example:

Create a folder on your project root directory. Suppose 'fontsFolder'.

In your css file, add the font using '@font-face', mention the file location and apply to required field.

@font-face {
   font-family: myCustomFont;
   src: url('../fontsFolder/AlexBrush-Regular.ttf');
}

.customFontSpan{
    font-family: 'myCustomFont'!important;
}
<span class="customFontSpan">Basic</span>

Use '!important' to avoid being overridden.