]> git.eshelyaron.com Git - emacs.git/commit
Update Android port
authorPo Lu <luangruo@yahoo.com>
Thu, 6 Jul 2023 01:35:27 +0000 (09:35 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 6 Jul 2023 01:35:27 +0000 (09:35 +0800)
commit75db4511704284a739c93895d7a31478b1a71181
tree73a1a65f1a3075104ee5a3ec1cd1871e4cc1d07e
parentaf8232a150c934d500bfc231a0b9ac53d6d8415e
Update Android port

* java/org/gnu/emacs/EmacsNative.java (scaledDensity): Announce
new argument `scaledDensity'.
* java/org/gnu/emacs/EmacsNoninteractive.java (main): Specify
new argument.
* java/org/gnu/emacs/EmacsService.java (onCreate): Compute an
adjusted DPI for the font size based on the ratio between
density and scaledDensity.
(run): Specify that adjusted density.
* src/android.c (setEmacsParams): Set
`android_scaled_pixel_density'.
* src/android.h: (android_scaled_pixel_density: New variable.
* src/androidterm.c (android_term_init): Set `font_resolution'.
* src/androidterm.h (struct android_display_info): New field.
* src/font.c (font_pixel_size, font_find_for_lface)
(font_open_for_lface, Ffont_face_attributes, Fopen_font): Use
FRAME_RES instead of FRAME_RES_Y.
* src/frame.h (FRAME_RES): New macro.  Use this to convert
between font point and pixel sizes as opposed to FRAME_RES_Y.
* src/w32font.c (fill_in_logfont):
* src/xfaces.c (Fx_family_fonts, set_lface_from_font): Use
FRAME_RES instead of FRAME_RES_Y.  (bug#64444)
java/org/gnu/emacs/EmacsNative.java
java/org/gnu/emacs/EmacsNoninteractive.java
java/org/gnu/emacs/EmacsService.java
src/android.c
src/android.h
src/androidterm.c
src/androidterm.h
src/font.c
src/frame.h
src/w32font.c
src/xfaces.c