зеркало из https://github.com/mozilla/pjs.git
Bug 661471. Part 6.1: Expose cairo_win32_get_system_text_quality. r=jfkthame
This commit is contained in:
Родитель
7f6b363f1e
Коммит
74e192417c
|
@ -468,7 +468,7 @@ _cairo_dwrite_font_face_scaled_font_create (void *abstract_face,
|
|||
// this means that if cleartype settings are changed but the scaled_fonts
|
||||
// are re-used, they might not adhere to the new system setting until re-
|
||||
// creation.
|
||||
switch (_cairo_win32_get_system_text_quality()) {
|
||||
switch (cairo_win32_get_system_text_quality()) {
|
||||
case CLEARTYPE_QUALITY:
|
||||
default_quality = CAIRO_ANTIALIAS_SUBPIXEL;
|
||||
break;
|
||||
|
|
|
@ -258,7 +258,7 @@ _have_cleartype_quality (void)
|
|||
}
|
||||
|
||||
BYTE
|
||||
_cairo_win32_get_system_text_quality (void)
|
||||
cairo_win32_get_system_text_quality (void)
|
||||
{
|
||||
BOOL font_smoothing;
|
||||
UINT smoothing_type;
|
||||
|
@ -325,7 +325,7 @@ _win32_scaled_font_create (LOGFONTW *logfont,
|
|||
* here is the hint_metrics options.
|
||||
*/
|
||||
if (options->antialias == CAIRO_ANTIALIAS_DEFAULT)
|
||||
f->quality = _cairo_win32_get_system_text_quality ();
|
||||
f->quality = cairo_win32_get_system_text_quality ();
|
||||
else {
|
||||
switch (options->antialias) {
|
||||
case CAIRO_ANTIALIAS_NONE:
|
||||
|
|
|
@ -216,9 +216,6 @@ _cairo_win32_scaled_font_is_type1 (cairo_scaled_font_t *scaled_font);
|
|||
cairo_bool_t
|
||||
_cairo_win32_scaled_font_is_bitmap (cairo_scaled_font_t *scaled_font);
|
||||
|
||||
BYTE
|
||||
_cairo_win32_get_system_text_quality (void);
|
||||
|
||||
#ifdef WINCE
|
||||
|
||||
// These are the required stubs for windows mobile
|
||||
|
|
|
@ -80,6 +80,8 @@ cairo_win32_surface_set_can_convert_to_dib (cairo_surface_t *surface, cairo_bool
|
|||
cairo_public cairo_status_t
|
||||
cairo_win32_surface_get_can_convert_to_dib (cairo_surface_t *surface, cairo_bool_t *can_convert);
|
||||
|
||||
BYTE cairo_win32_get_system_text_quality (void);
|
||||
|
||||
#if CAIRO_HAS_WIN32_FONT
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче