unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Kévin Le Gouguec" <kevin.legouguec@gmail.com>
To: mituharu@math.s.chiba-u.ac.jp
Cc: 35781@debbugs.gnu.org, Alex Gramiak <agrambot@gmail.com>
Subject: bug#35781: Discrepancies between xftfont.c and ftcrfont.c
Date: Tue, 21 May 2019 21:03:25 +0200	[thread overview]
Message-ID: <87zhnfljeq.fsf@gmail.com> (raw)
In-Reply-To: <03f91c3a5f9c7d823e2d6d9c8dfc7b60.squirrel@weber.math.s.chiba-u.ac.jp> (mituharu@math.s.chiba-u.ac.jp's message of "Tue, 21 May 2019 19:59:55 +0900")

mituharu@math.s.chiba-u.ac.jp writes:

> I tried making ftcrfont_open look much like xftfont_open.
> Could you try the attached patch?

Thank you for this patch!

I applied it on top of cb367c8e0d, and AFAICT this fixes the issue: on
both setups where I used to see a difference in hint style[1], the
fonts now look the same (i.e. with slight hinting).  Things haven't
deteriorated on the third setup[2].

I glanced at your patch to try and get a sense of how things worked;
from what I can tell you moved some logic from xftfont.c to ftfont.c,
which is used by ftcrfont.c, so the XFT and Cairo build would use more
common code?

(Is there a reason why you left xftfont_add_rendering_parameters in
xftfont.c despite adding ftfont_add_rendering_parameters in ftfont.c?
Should this function be added to ftfont.h so that xftfont.c gets rid
of its duplicate implementation?)

(Also, I see you removed some code related to the bitmap_strike_index
and ft_size_draw members of struct font_info; is it because whatever
this code was doing is now handled by… something else in ftfont.c?)

(Sorry for these Boeotian questions!)

Again, thanks a lot for this patch!



[1] Debian stretch (cairo 1.14.8) and Xubuntu 16.04 (cairo 1.14.6).

[2] OpenSUSE Tumbleweed (cairo 1.16.0).






  reply	other threads:[~2019-05-21 19:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 17:39 bug#35781: 27.0.50; [PATCH] Improve font display on Cairo builds Kévin Le Gouguec
2019-05-17 17:54 ` Dmitry Gutov
2019-05-17 18:14   ` Kévin Le Gouguec
2019-05-17 18:23     ` Kévin Le Gouguec
2019-05-17 18:24     ` Dmitry Gutov
2019-05-18 20:43 ` bug#35781: Discrepancies between xftfont.c and ftcrfont.c Kévin Le Gouguec
2019-05-19 19:48   ` Alex Gramiak
2019-05-21 10:59     ` mituharu
2019-05-21 19:03       ` Kévin Le Gouguec [this message]
2019-05-22  9:24         ` YAMAMOTO Mitsuharu
2019-05-23  2:00           ` YAMAMOTO Mitsuharu
2019-05-23 17:53             ` Kévin Le Gouguec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhnfljeq.fsf@gmail.com \
    --to=kevin.legouguec@gmail.com \
    --cc=35781@debbugs.gnu.org \
    --cc=agrambot@gmail.com \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).