Stylo: Implement font-kerning #13667
Closed
Labels
Comments
Please make a comment here if you intend to work on this issue. Thank you! |
Make sure the MDN example has visible kerning. You may need to tweak the font to get this to work. If the MDN example shows no kerning difference between the two example lines, try the following HTML example: <style type="text/css">
div {
font-size: 2rem;
font-family: arial;
}
#nokern {font-kerning: none;}
#kern {font-kerning: normal;}
</style>
<div id=kern>
AV T. ij
</div>
<div id=nokern>
AV T. ij
</div> |
bors-servo
added a commit
that referenced
this issue
Oct 14, 2016
Add support for 'font-kerning' in geckolib Add support for 'font-kerning' in geckolib These changes fix #13667 $ ./mach build -d It looks like you passed an unrecognized argument into mach. $ ./mach test-tidy It looks like you are trying to run an unknown mach command: test-tidy I'm clearly doing something wrong here, but I'm not sure what - [x] These changes do not require tests because "[For stylo it's okay to not have tests since many of the reftests fail due to unrelated reasons](#13570 (comment))" :) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13751) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please go through the guide before working on this issue.
font-kerning
is a keyword property which takes one of the following values:auto | normal | none
. The default value isauto
. The linked MDN has more information about this.The constant prefix you should be using is
NS_FONT_KERNING
You will need to manually implement the glue, see https://github.com/servo/servo/pull/13570/files for an example of this.
Code:
servo/components/style/properties/longhand/font.mako.rs
The text was updated successfully, but these errors were encountered: