• YAMAMOTO Mitsuharu's avatar
    Make Cairo build obey hint-style font setting (Bug#35781) · 03feb937
    YAMAMOTO Mitsuharu authored
    * src/ftfont.h (ftfont_open2): Remove extern.
    (ftfont_fix_match, ftfont_add_rendering_parameters)
    (ftfont_entity_pattern): Add externs.
    (struct font_info): Remove member bitmap_strike_index.
    (struct font_info) [USE_CAIRO]: Remove member ft_size_draw.  All uses removed.
    Add member bitmap_position_unit.
    
    * src/xftfont.c (xftfont_fix_match, xftfont_add_rendering_parameters): Move
    functions from here ...
    * src/ftfont.c (ftfont_fix_match, ftfont_add_rendering_parameters): ... to
    here.  All uses changed.
    * src/xftfont.c (xftfont_open): Extract FcPattern creation from font entity
    from here ...
    * src/ftfont.c (ftfont_entity_pattern):	... to here.
    * src/xftfont.c (syms_of_xftfont): Move DEFSYMs for Fontconfig's rendering
    parameters from here ...
    * src/ftfont.c (syms_of_ftfont): ... to here.
    
    * src/ftfont.c (ftfont_open, ftfont_open2): Undo introduction of
    bitmap_strike_index.  Merge functions into ftfont_open.
    
    * src/ftcrfont.c (ftcrfont_open): Align code with xftfont_open rather than
    ftfont_open.
    (ftcrfont_close): Likewise.
    (ftcrfont_has_char, ftcrfont_encode_char):
    (ftcrfont_otf_capability) [HAVE_LIBOTF]:
    (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: New functions.
    (ftcrfont_driver): Register them.
    (ftcrfont_get_bitmap, ftcrfont_anchor_point):
    (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]: Use bitmap_position_unit
    instead of bitmap_strike_index to screen bitmap fonts.
    (ftcrfont_get_bitmap, ftcrfont_anchor_point):
    (ftcrfont_otf_capability) [HAVE_LIBOTF]:
    (ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]:
    (ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: Temporarily
    assign ftcrfont_info->ft_size and call corresponding ftfont functions.
    (ftcrfont_draw): Don't flush cairo surface when exporting.
    03feb937
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...