aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-02-10 18:57:51 +0800
committerPo Lu2023-02-10 18:57:51 +0800
commita1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9 (patch)
treeabbb940a86dfc835ff22ec40d5387ea4a20a9e55 /src
parent60270d8ee30ee15b5ed74ac211b7cb35c58ad3f3 (diff)
downloademacs-a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9.tar.gz
emacs-a1941cd7a7dc9a6f6b7239ec7d4bd3bdf5d55fc9.zip
Update Android port
* doc/emacs/android.texi (Android Windowing): Remove yet another limitation. * java/debug.sh: Make this work on systems which prohibit attaching to app processes from adbd. * java/org/gnu/emacs/EmacsCopyArea.java (perform): Avoid creating copies whenever possible. * java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView): Remove SurfaceView based implementation and use manual double buffering with invalidate instead. * java/org/gnu/emacs/EmacsView.java (EmacsView, handleDirtyBitmap) (raise, lower, onDetachedFromWindow): Adjust accordingly. * java/org/gnu/emacs/EmacsWindow.java (windowUpdated): Remove function. * src/sfntfont.c (sfntfont_open): Set font->max_width correctly.
Diffstat (limited to 'src')
-rw-r--r--src/sfntfont.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sfntfont.c b/src/sfntfont.c
index cc084c79307..a5ed54394a2 100644
--- a/src/sfntfont.c
+++ b/src/sfntfont.c
@@ -2152,6 +2152,10 @@ sfntfont_open (struct frame *f, Lisp_Object font_entity,
2152 * pixel_size * 1.0 / font_info->head->units_per_em); 2152 * pixel_size * 1.0 / font_info->head->units_per_em);
2153 font->height = font->ascent + font->descent; 2153 font->height = font->ascent + font->descent;
2154 2154
2155 /* Set font->max_width to the maximum advance width. */
2156 font->max_width = (font_info->hhea->advance_width_max
2157 * pixel_size * 1.0 / font_info->head->units_per_em);
2158
2155 /* Set generic attributes such as type and style. */ 2159 /* Set generic attributes such as type and style. */
2156 ASET (font_object, FONT_TYPE_INDEX, sfnt_vendor_name); 2160 ASET (font_object, FONT_TYPE_INDEX, sfnt_vendor_name);
2157 2161