![]() First we need to import the individual font files as resources, just as we did for Pacifico. ![]() Let’s begin by looking at how we create a font family. The bad news is that it currently doesn’t work very well. The good news is that, in addition to having font resources, there has also been the addition of font families which group all the distinct styles of a font together in to a typeface. In this article we’ll explore how typefaces are supported using the new font support. ![]() Many people confuse the two, but a typeface is actually a family of related fonts which vary by weight or style.Take look at Nunito and you’ll see that there are 14 different variants (or styles) each of the individual styles is a font, but the collection of these fonts is the typeface named Nunito. However, in most cases what we actually need to use is a typeface rather than a font. In the previous article in this series we looked at how to import and use a custom font using Android O’s shiny new font support. ![]() In this article we’ll look at something very close to my heart: Better font support. In this occasional series, we’ll look at some of the new features being introduced in Android O. In March 2017 Google announced the first release of the Android O developer preview.
0 Comments
Leave a Reply. |