Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

is there a way to load a custom font? #26

Closed
gustavomc opened this issue Jun 27, 2016 · 3 comments
Closed

is there a way to load a custom font? #26

gustavomc opened this issue Jun 27, 2016 · 3 comments

Comments

@gustavomc
Copy link

how to load text with custom font?

@demetrio812
Copy link

I think I can help: put the css in the same directory of the fonts (inside the assets folder) and then add the following to your css (using the right font name):

@font-face {
 font-family: 'Lato-Light';
 src: url('Lato-Light.ttf')
}

Dem

@gustavomc
Copy link
Author

but how can i set it to a string value programmatically? @demetrio812

@falnatsheh
Copy link
Owner

if you looked at the theme example in the sample app you will see this is done by having multiple CSS files. However, there's currently no support for changing the font programmatically without using CSS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants