mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
Merge remote-tracking branch 'origin/tracking' into custom
This commit is contained in:
commit
523b9df9db
16 changed files with 230 additions and 137 deletions
|
|
@ -591,8 +591,16 @@ gfxFontShaper::GetRoundOffsetsToPixels(DrawTarget* aDrawTarget,
|
|||
}
|
||||
|
||||
// Sometimes hint metrics gets set for us, most notably for printing.
|
||||
#ifdef MOZ_TREE_CAIRO
|
||||
cairo_hint_metrics_t hint_metrics =
|
||||
cairo_scaled_font_get_hint_metrics(scaled_font);
|
||||
#else
|
||||
cairo_font_options_t* font_options = cairo_font_options_create();
|
||||
cairo_scaled_font_get_font_options(scaled_font, font_options);
|
||||
cairo_hint_metrics_t hint_metrics =
|
||||
cairo_font_options_get_hint_metrics(font_options);
|
||||
cairo_font_options_destroy(font_options);
|
||||
#endif
|
||||
|
||||
switch (hint_metrics) {
|
||||
case CAIRO_HINT_METRICS_OFF:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue