Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement synthetic italics on Linux. #1721
Conversation
|
@bors-servo r+ |
|
|
Implement synthetic italics on Linux. Mac and Windows implementations still need to be implemented. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1721) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
@bors-servo r=nical |
|
|
|
@bors-servo r=nical |
|
|
|
|
|
|
Mac and Windows implementations still need to be implemented.
|
Rebased. @bors-servo r=nical |
|
|
Implement synthetic italics on Linux. Mac and Windows implementations still need to be implemented. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1721) <!-- Reviewable:end -->
|
|
|
@glennw @nical This broke the gecko build, see https://bugzilla.mozilla.org/show_bug.cgi?id=1401244#c3 The problem appears to be that Option inside FontInstanceOptions is not supported by cbindgen; it generates a dummy "struct Option_FontRenderMode;" in the generated bindings but that's not sufficient. @eqrion Thoughts? Can we make cbindgen support this? ^ |
|
I think that we can work around this in bindings.rs, I'd like to try that before backing out if you are not in a hurry. |
|
Sure, if you have something in mind to work around this I'm happy to wait a bit. |
|
Oh, it didn't even occur to me that cbindgen would have trouble with this. One easy way is I could add a "Default" variant to FontRenderMode, and then we use FontRenderMode::Default instead of None, which would mean it doesn't need to be an option. Want me to make that change? |
|
The patch nical posted to bugzilla seems to solve the problem. I don't have a strong opinion as to which solution is preferable. |
|
OK, I'll wait to hear @nical's opinion before making any change. |
|
The WebRender update landed last Friday, no need to make the FontRenderMode change. |

glennw commentedSep 19, 2017
•
edited by larsbergstrom
Mac and Windows implementations still need to be implemented.
This change is