Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1118] Font sizes on ios are not in typographical units

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2014-09-17T22:11:10.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsTCSupportTriage
ReporterSzymon Tomasz Stefanek
AssigneeMauro Parra-Miranda
Created2014-09-05T23:48:25.000+0000
Updated2016-03-08T07:37:28.000+0000

Description

The documentation for Ti.UI.View states that font sizes on iOS are specified in typographical units which are 1/72 of an inch. This is not true. Specifying a font size of 72 (or '72', or '72pt') produces a font that is less than half of an inch in height. This does not seem to depend on retina/non-retina setting nor on the font family being used. The units are more like 1/144th of an inch.

Comments

  1. Mauro Parra-Miranda 2014-09-17

    Hello, looks like an issue with native iOS rather than Titanium Appcelerator. Please check this docs on the issue: http://stackoverflow.com/a/6107836 and let me know if that info helps you to accomplish the one to one typography representation. Best Regards!
  2. Szymon Tomasz Stefanek 2014-09-18

    I agree that this seems to be a native issue. The problem is with the Ti.UI.View documentation: it's wrong and thus confusing :) I suggest correcting it by stating that on iOS native issues prevent the fonts to be in real typographical units.
  3. Szymon Tomasz Stefanek 2014-09-18

    I was forgetting...I have checked that stackoverflow article and I confirm it. The units seem to be close to 1/144th of an inch

JSON Source