all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: jasonr@f2s.com
Cc: emacs-devel@gnu.org, brep@163.com, miles@gnu.org
Subject: Re: font name not decoded in the output of describe-font
Date: Tue, 16 Dec 2008 13:44:19 +0900	[thread overview]
Message-ID: <E1LCRn9-0005Tz-8X@etlken.m17n.org> (raw)
In-Reply-To: <1229391969.494708614ac3b@webmail.freedom2surf.net> (jasonr@f2s.com)

In article <1229391969.494708614ac3b@webmail.freedom2surf.net>, jasonr@f2s.com writes:

> Quoting Miles Bader <miles@gnu.org>:
> > Jason Rumney <jasonr@f2s.com> writes:
> > >> The font name is not decoded, and revealed as internal representation.
> > >
> > > I've added code to decode and encode font names in the w32 font backends.
> >
> > The same problem exists in the output of `C-u C-x ='; I thought
> > Handa-san said he was going to fix it, but... maybe he forgot?

Ah, yes, sorry.

> He said that the fix will need to be specific to each font backend.
> I fixed the W32 font backends to decode the font name, but the problem may still
> exist in other backends.

> My understanding is that Truetype fonts that contain localised names also
> contain an ASCII name. On Windows the localised name is only used when the
> system locale matches. I don't know under what circumstances if any xft uses
> the localised truetype font names. And whether localised names are used in
> other font types, and how to tell the encoding.

At least, X font-backend has to decode a font name by
iso-8859-1 if the name has 8-bit code (but I've never seen
such a font).

For Xft backend, the problem is fontconfig.  It seems that
it always provide an UTF-8 encoded name, but I couldn't find
a document saying that clearly.  This page:

http://fontconfig.org/fontconfig-devel/x19.html#AEN27

says only this:

    Property       CPP Symbol           Type    Description
    ----------------------------------------------------
    family         FC_FAMILY            String  Font family names
    familylang     FC_FAMILYLANG        String  Language cooresponding to
                                                each family name
 
---
Kenichi Handa
handa@m17n.org




  reply	other threads:[~2008-12-16  4:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-13 14:18 font name not decoded in the output of describe-font brep
2008-12-13 17:55 ` Jason Rumney
2008-12-16  1:36   ` Miles Bader
2008-12-16  1:46     ` jasonr
2008-12-16  4:44       ` Kenichi Handa [this message]
2008-12-16  8:17         ` Stephen J. Turnbull
2008-12-16  8:52           ` Miles Bader
2008-12-17  4:37             ` Stephen J. Turnbull
2008-12-19  5:44             ` Kenichi Handa
2008-12-14 14:16 ` brep

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

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

  git send-email \
    --in-reply-to=E1LCRn9-0005Tz-8X@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=brep@163.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@f2s.com \
    --cc=miles@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.