-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using custom font with variants. #264
Comments
It's an old requested feature see #195 Need to work out a way to build Typeface Families. |
The MeetMe/font-compat project does this automatically on Lollipop+. And there's a workaround that works for KitKat and earlier, with some style tweaks. |
That font-compat is complicated to use. But I'll take how he generates font Thanks for linking. On Mon, 28 Mar 2016, 15:27 Joe, [email protected] wrote:
|
Complicated because of the way the families are parsed? It mirrors the way that the Android platform configures font families, which means if/when Android ever exposes that capability, it will likely mirror that style of configuration: https://github.com/MeetMe/font-compat/blob/master/sample/src/main/res/raw-v19/fonts.xml |
Hey guys, |
I use seperated fontpath for each variant. Unfotunately, it's currently the only way. |
I actually have found a better way to do this. :D On Sun, 17 Apr 2016 at 13:02 staroflead [email protected] wrote:
|
Please enlighten us :) |
Very similar to the font manager mechanism. But I think I'd always do it as Basically the best of both worlds, font compat plus Calligraphy :D On Sun, 17 Apr 2016, 15:42 staroflead, [email protected] wrote:
|
How can I use font's variant like light, bold,italic?
Can I use textStyle attribute and set only font family to able to use all 4 variants?
And how can I reuse default font arial after I have init the config in application onCreate() ?
The text was updated successfully, but these errors were encountered: