Question

Problem: When implementing a custom font I notice quite a big change in the font size. (Without any altering to the font size in the XML file)

This is causing a significant variation between the Actual font size in comparison to the size shown in the Graphical layout in ADT. (Visually about 20sp smaller)

I am building a timer application and want to use a Digital Looking font.

Question: Can a .ttf file affect the font size relative to a constant 'sp' ?

Was it helpful?

Solution

To answer my own question.

YES. a .ttf file does have a 'base font size' and this may vary from one .ttf to another.

As stated in my comment above:

I figured out how to change the base size of a .ttf using FontForge (fontforge.org) There is a great tutorial on how to do this here: forum.xda-developers.com/showthread.php?t=990853 I did have to play around with more options then noted in the tutorial to get my font just right but it works perfect!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top