aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-01-12 08:14:58 +0000
committerYAMAMOTO Mitsuharu2006-01-12 08:14:58 +0000
commit3e16e7992b7b5dbab6ce07695010b897551a64e9 (patch)
tree30b9af2d157c6f74e58c86489b2dcc1ae25ea33f /src
parent6975573c361fa97f1b2991e2776dbe178a9a5aae (diff)
downloademacs-3e16e7992b7b5dbab6ce07695010b897551a64e9.tar.gz
emacs-3e16e7992b7b5dbab6ce07695010b897551a64e9.zip
[USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
[MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering. (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in decomposed form.
Diffstat (limited to 'src')
-rw-r--r--src/macterm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/macterm.c b/src/macterm.c
index 1adbad9ddd7..b620bf1f683 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -626,6 +626,7 @@ atsu_get_text_layout_with_text_ptr (text, text_length, style, text_layout)
626 static ATSLineLayoutOptions line_layout = 626 static ATSLineLayoutOptions line_layout =
627#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 627#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020
628 kATSLineDisableAllLayoutOperations | kATSLineUseDeviceMetrics 628 kATSLineDisableAllLayoutOperations | kATSLineUseDeviceMetrics
629 | kATSLineUseQDRendering
629#else 630#else
630 kATSLineIsDisplayOnly | kATSLineFractDisable 631 kATSLineIsDisplayOnly | kATSLineFractDisable
631#endif 632#endif
@@ -7507,8 +7508,10 @@ XLoadQueryFont (Display *dpy, char *fontname)
7507 static Boolean bold_p, italic_p; 7508 static Boolean bold_p, italic_p;
7508 ATSUAttributeValuePtr values[] = {&font_id, &size_fixed, 7509 ATSUAttributeValuePtr values[] = {&font_id, &size_fixed,
7509 &bold_p, &italic_p}; 7510 &bold_p, &italic_p};
7510 ATSUFontFeatureType types[] = {kAllTypographicFeaturesType}; 7511 ATSUFontFeatureType types[] = {kAllTypographicFeaturesType,
7511 ATSUFontFeatureSelector selectors[] = {kAllTypeFeaturesOffSelector}; 7512 kDiacriticsType};
7513 ATSUFontFeatureSelector selectors[] = {kAllTypeFeaturesOffSelector,
7514 kDecomposeDiacriticsSelector};
7512 Lisp_Object font_id_cons; 7515 Lisp_Object font_id_cons;
7513 7516
7514 font_id_cons = Fgethash (make_unibyte_string (family, strlen (family)), 7517 font_id_cons = Fgethash (make_unibyte_string (family, strlen (family)),