mirror of
https://github.com/status-im/react-native.git
synced 2025-01-29 18:54:58 +00:00
James Ide
62766e6077
[Text] Account for font leading so descenders are not clipped
Summary: Prior to this diff, descenders (the hanging tail on letters like g and j) were clipped on the last line because the text measurer did not account for the font leading. With `NSStringDrawingUsesFontLeading` it honors the fonts line spacing. To test: open the Text demo of the UIExplorer and see that the bottom of the letter g is no longer clipped off. ## Before ![Screenshot Before](https://cloud.githubusercontent.com/assets/379606/6364746/1c5527a0-bc60-11e4-8aeb-2147a6eb6596.png) ## After ![Screenshot After](https://cloud.githubusercontent.com/assets/379606/6364747/1e9abe58-bc60-11e4-8c34-9f20ad8572ff.png) Closes https://github.com/facebook/react-native/pull/96 Github Author: James Ide <ide@jameside.com> Test Plan: Imported from GitHub, without a `Test Plan:` line.
Description
A framework for building native apps with React.
http://facebook.github.io/react-native/
Languages
JavaScript
47.5%
Java
26.5%
Objective-C
13.7%
C++
7.2%
C
1.5%
Other
3.5%