Commit 9700e48
committed
[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

## After

Closes facebook#96
Github Author: James Ide <[email protected]>
Test Plan: Imported from GitHub, without a `Test Plan:` line.1 parent e9a8cba commit 9700e48
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
0 commit comments