Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some diacritics not rendering on linux #1846

Closed
Gankra opened this issue Oct 11, 2017 · 5 comments
Closed

Some diacritics not rendering on linux #1846

Gankra opened this issue Oct 11, 2017 · 5 comments

Comments

@Gankra
Copy link
Contributor

@Gankra Gankra commented Oct 11, 2017

https://gankro.github.io/blah/reftests/text/fallback-mark-stacking-1.html
https://gankro.github.io/blah/reftests/text/fallback-mark-stacking-1-notref.html

works fine on mac/windows, which suggests it's a bug in webrender's font code.

On mac with webrendest gecko, these render as:

screen shot 2017-10-11 at 2 16 23 pm
screen shot 2017-10-11 at 2 16 30 pm

On linux, you only see the Xs.

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Oct 11, 2017

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Oct 11, 2017

(I'll try to make a wrench test for this in the next day, but it might be font-specific)

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Oct 12, 2017

Doesn't seem font-specific, but text: "x̂̃ x̃̂" doesn't seem to actually work in wrench. :/

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Oct 12, 2017

(I think VeraBd.ttf probably just doesn't have U+0302 or U+0303)

@Gankra
Copy link
Contributor Author

@Gankra Gankra commented Oct 12, 2017

Gonna focus on some other stuff for now; someone who runs linux primarily should probably champion this.

glennw pushed a commit to glennw/webrender that referenced this issue Oct 13, 2017
Diacritic glyphs have a valid width and height, but a
zero advance. Previously we were discarding these but
they are valid glyphs. The code also checks for a width
and height of 0 below, which catches non-printable glyphs
such as spaces.

Fixes servo#1846.
bors-servo added a commit that referenced this issue Oct 14, 2017
Fix diacritic glyphs on Linux.

Diacritic glyphs have a valid width and height, but a
zero advance. Previously we were discarding these but
they are valid glyphs. The code also checks for a width
and height of 0 below, which catches non-printable glyphs
such as spaces.

Fixes #1846.

<!-- 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/1868)
<!-- Reviewable:end -->
glennw pushed a commit to glennw/webrender that referenced this issue Oct 15, 2017
Diacritic glyphs have a valid width and height, but a
zero advance. Previously we were discarding these but
they are valid glyphs. The code also checks for a width
and height of 0 below, which catches non-printable glyphs
such as spaces.

Fixes servo#1846.
bors-servo added a commit that referenced this issue Oct 15, 2017
Fix diacritic glyphs on Linux.

Diacritic glyphs have a valid width and height, but a
zero advance. Previously we were discarding these but
they are valid glyphs. The code also checks for a width
and height of 0 below, which catches non-printable glyphs
such as spaces.

Fixes #1846.

<!-- 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/1868)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.