aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-10-03 01:25:13 -0400
committerGitHub <noreply@github.com>2019-10-03 01:25:13 -0400
commit78438113d4ee6838c1f630f4ac0cdb2b157e8781 (patch)
tree63d5c28933840ad067fae9477ec4c461a251bf9a /components/script/dom/macros.rs
parent84693d81173b58c4afc408a7295210960842484a (diff)
parentddbd7aef7d7a0cdf48ac28656f8e547bd28d51cd (diff)
downloadservo-78438113d4ee6838c1f630f4ac0cdb2b157e8781.tar.gz
servo-78438113d4ee6838c1f630f4ac0cdb2b157e8781.zip
Auto merge of #24347 - jdm:mac-font-load, r=pcwalton
Fix intermittent macOS reftest failures CTCreateFontWithName intermittently returns the wrong font for a given postscript name. These changes rely on obtaining a font descriptor, using it to get the path to the actual font file on disk, getting the bytes that make up the font, and using Core Graphics to create a font handle and obtaining the Core Graphics font from the CGFont reference. This is the same strategy that font-kit uses. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23290 - [x] There are tests for these changes <!-- 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/24347) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/macros.rs')
0 files changed, 0 insertions, 0 deletions