]> git.eshelyaron.com Git - emacs.git/commit
Allow toggling antialiasing inside the Haiku font dialog
authorPo Lu <luangruo@yahoo.com>
Tue, 21 Jun 2022 05:04:24 +0000 (05:04 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 21 Jun 2022 05:04:47 +0000 (05:04 +0000)
commit8cf3c3203b07b781ed34627fce0283d2b1b03fd7
tree55f62cdd2e93b42654a4561cf2c96be323443460
parentc175984e2c909979da915ac46b0c92de67f4b249
Allow toggling antialiasing inside the Haiku font dialog

* src/haiku_support.cc (struct font_selection_dialog_message):
New field `disable_antialias'.
(MessageReceived): Handle new message SET_DISABLE_ANTIALIASING.
(class DualLayoutView): Rename to `TripleLayoutView'.
(class TripleLayoutView): Rename from `DualLayoutView'.
(MinSize): Update computations for three views.

(class EmacsFontSelectionDialog, UpdatePreview)
(EmacsFontSelectionDialog): Add an antialiasing checkbox to
control antialiasing.
(be_select_font): New arguments `initial_antialias' and
`disable_antialias'.

* src/haiku_support.h: Update prototypes.

* src/haikufont.c (haikufont_pattern_from_object): Set
FSPEC_ANTIALIAS.
(Fx_select_font): Update accordingly.
src/haiku_support.cc
src/haiku_support.h
src/haikufont.c