Uh oh!
There was an error while loading. Please reload this page.
Fix android letter spacing - #9420
Conversation
ghost
commented
Aug 16, 2016
ghost
commented
Aug 16, 2016
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
ghost
commented
Aug 16, 2016
@tim-ford updated the pull request. |
ghost
commented
Aug 16, 2016
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
nihgwu
commented
Aug 16, 2016
awesome |
ghost
commented
Aug 16, 2016
@tim-ford updated the pull request. |
ghost
commented
Aug 16, 2016
@tim-ford updated the pull request - view changes |
munzur
commented
Sep 3, 2016
Any update on this? |
| int fontSize = update.getFontSize(); | ||
| if (!FloatUtil.floatsEqual(mLetterSpacing, nextLetterSpacing)) { | ||
| mLetterSpacing = nextLetterSpacing; | ||
| if(Float.isNaN(mLetterSpacing)) { |
mkonicek
commented
Sep 8, 2016
Thanks for adding this! In the Test plan, could you please show screenshots of text that has no letterSpacing set (should be unchanged), and a few examples of text with a few different values of letterSpacing set? This PR sets the letter spacing in |
ghost
commented
Sep 25, 2016
@tim-ford do you have any updates for this pull request? It's been a while since the last update so wanted to check in and see if you've looked at the requested changes. |
belohlavek
commented
Sep 27, 2016
Will this be compatible with API 19+? |
tim-ford
commented
Sep 28, 2016
the formula and fixes work -- the formula was researched on the web for PX to EM conversions since Android does letterSpacing in EM -- the reason this hasn't gone anywhere is: not sure why it fails the tests -- since everything works fine in a functional App |
tim-ford
commented
Sep 28, 2016
Also have updated fork to 35-stable -- not sure how to bring in those adjustments so the files can no longer in conflice |
hubciorz
commented
Oct 19, 2016
Any news on this, guys? |
lacker
commented
Oct 25, 2016
@tim-ford Are the tests failing for you locally too, or do you think it's something going wrong with CircleCI? I am not sure what you mean exactly when you say "not sure why it fails the tests" |
tim-ford
commented
Oct 25, 2016
its been a couple of weeks since looking -- I have already released an application with this fix in it, the fix is fine -- updates have occurred since that will require some adjustments to code placement -- It seemed like an issue with CI at the time |
lacker
commented
Oct 25, 2016
The test errors do look related to spacing on Android so it at least isn't obvious to me that it's a flaky CI problem. But take a look and see if you agree with my take. Also fixing the merge conflicts should "kick" the CI to run again anyway. |
facebook-github-bot
commented
Nov 7, 2016
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
hramos
commented
Nov 7, 2016
Importing to see if our internal tests pass. It does seem like there are some conflicts that need to be resolved before we can merge this though. |
hramos
commented
Nov 10, 2016
@tim-ford can you resolve the conflicts? |
julesmoretti
commented
Nov 18, 2016
Would love this feature request to be resolved :) |
lacker
commented
Dec 14, 2016
It seems like this pull request has been abandoned. I'm going to close it but if you are still interested in working on this please feel free to reopen! |
jkomyno
commented
Mar 24, 2017
Why was this pull request abandoned? |
christoph-jerolimov
commented
Mar 29, 2017
Checkout #13199. I implemented letterSpacing based on this PR, but also solve that the layout was calculated correctly, which was missed here. |
Motivation for this fix is to get "letterSpacing" property in styles to work on Android (for the most part - there are non working edge cases potentially - primary use case seems fine)
Test plan (required)
Tested using:
letterSpacing: -6,
fontSize:24,
fontFamily:'ionicons',
Good Stars

Bad Stars
