From: Kenichi Handa <handa@m17n.org>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: fail on osx between 2/4/2009 and 2/5/2009
Date: Tue, 24 Feb 2009 11:55:59 +0900 [thread overview]
Message-ID: <E1LbnSh-0003HG-8h@etlken> (raw)
In-Reply-To: <9FCA1DF6-50B7-45BF-8082-A8C365F4ADF7@gmail.com> (message from Adrian Robert on Thu, 19 Feb 2009 12:30:38 +0200)
In article <9FCA1DF6-50B7-45BF-8082-A8C365F4ADF7@gmail.com>, Adrian Robert <adrian.b.robert@gmail.com> writes:
> On Feb 18, 2009, at 4:48 AM, Kenichi Handa wrote:
> > In article <E1LZNv0-0003sq-L9@etlken>, Kenichi Handa
> > <handa@m17n.org> writes:
>>>> The full list of properties that can appear bundled under the
>>>> FONT_EXTRA property that are important for drivers to take into
>>>> account in match() and list() should be specified somewhere in
>>>> font.h.
> >
> > I've just added comments in font.h, and augmented the
> > docstring for font-spec (in font.c).
> >
> > Please tell me if there is any unclear part.
> Looks clear to me. Should weight/slant/width also be mentioned under
> list()?
No, because they are not specified in FONT-SPEC. The `list'
method must return fonts of all their variations. A proper
font is selected in font_list_entities of font.c.
> Here is a patch which would add that.
Thank you. I updated font.h according to that (except for
the last hunk).
---
Kenichi Handa
handa@m17n.org
> *** font.h.~1.28.~ Wed Feb 18 11:51:23 2009
> --- font.h Wed Feb 18 16:54:13 2009
> ***************
> *** 68,76 ****
> enum font_property_index
> {
> /* FONT-TYPE is a symbol indicating a font backend; currently
> `x',
> ! `xft', `ftx' are available on X and gdi on Windows.
> ! For Windows, `bdf' and `uniscribe' backends are in progress.
> ! For Mac OS X, we need `atm'. */
> FONT_TYPE_INDEX,
> /* FONT-FOUNDRY is a foundry name (symbol). */
> --- 68,75 ----
> enum font_property_index
> {
> /* FONT-TYPE is a symbol indicating a font backend; currently
> `x',
> ! `xft', `ftx' are available on X, gdi on Windows, and ns under
> ! Cocoa / GNUstep. */
> FONT_TYPE_INDEX,
> /* FONT-FOUNDRY is a foundry name (symbol). */
> ***************
> *** 153,160 ****
> /* In a font-spec, the value is an alist of extra information
> of a
> font such as name, OpenType features, and language coverage.
> In addition, in a font-entity, the value may contain a pair
> ! (font-entity . INFO) where INFO is an extra infomation to
> ! identify a font (font-driver dependent). */
> FONT_EXTRA_INDEX, /* alist alist */
> /* This value is the length of font-spec vector. */
> --- 152,159 ----
> /* In a font-spec, the value is an alist of extra information
> of a
> font such as name, OpenType features, and language coverage.
> In addition, in a font-entity, the value may contain a pair
> ! (font-entity . INFO) where INFO is extra information to
> identify
> ! a font (font-driver dependent). */
> FONT_EXTRA_INDEX, /* alist alist */
> /* This value is the length of font-spec vector. */
> ***************
> *** 172,178 ****
> FONT_NAME_INDEX = FONT_ENTITY_MAX,
> /* Full name of the font (string). It is the name extracted from
> ! the opend font, and may be different from the above. It may be
> nil if the opened font doesn't give a name. */
> FONT_FULLNAME_INDEX,
> --- 171,177 ----
> FONT_NAME_INDEX = FONT_ENTITY_MAX,
> /* Full name of the font (string). It is the name extracted from
> ! the opened font, and may be different from the above. It
> may be
> nil if the opened font doesn't give a name. */
> FONT_FULLNAME_INDEX,
> ***************
> *** 499,505 ****
> /* Symbol indicating the type of the font-driver. */
> Lisp_Object type;
> ! /* 1 iff the font's foundary, family, and adstyle names are case
> sensitve. */
> int case_sensitive;
> --- 498,504 ----
> /* Symbol indicating the type of the font-driver. */
> Lisp_Object type;
> ! /* 1 iff the font's foundry, family, and adstyle names are case
> sensitve. */
> int case_sensitive;
> ***************
> *** 509,518 ****
> /* List fonts exactly matching with FONT_SPEC on FRAME. The value
> is a list of font-entities. The font properties to be
> considered
> ! are: :foundry, :family, :adstyle, :registry, :script, :lang, and
> ! :otf. See the function `font-spec' for their meanings. Note
> ! that the last three properties are stored in FONT_EXTRA_INDEX
> ! slot of FONT_SPEC.
> The returned value is a list of font-entities. Each font-entity
> has :type property whose value is the same as the above `type'.
> --- 508,517 ----
> /* List fonts exactly matching with FONT_SPEC on FRAME. The value
> is a list of font-entities. The font properties to be
> considered
> ! are: :family, :weight, :slant, :width, :foundry, :adstyle,
> ! :registry, :script, :lang, and :otf. See the function
> ! `font-spec' for their meanings. Note that the last three
> ! properties are stored in FONT_EXTRA_INDEX slot of FONT_SPEC.
> The returned value is a list of font-entities. Each font-entity
> has :type property whose value is the same as the above `type'.
next prev parent reply other threads:[~2009-02-24 2:55 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 1:15 fail on osx between 2/4/2009 and 2/5/2009 Randal L. Schwartz
2009-02-07 5:02 ` Will Farrington
2009-02-07 10:46 ` Adrian Robert
2009-02-09 2:52 ` Will Farrington
2009-02-10 6:42 ` Kenichi Handa
2009-02-10 6:47 ` Will Farrington
2009-02-10 8:08 ` Jules Colding
2009-02-10 8:44 ` YAMAMOTO Mitsuharu
2009-02-10 9:05 ` Jules Colding
2009-02-10 10:51 ` YAMAMOTO Mitsuharu
2009-02-10 12:06 ` Kenichi Handa
2009-02-10 13:06 ` Jason Rumney
2009-02-12 7:37 ` Kenichi Handa
2009-02-12 8:03 ` YAMAMOTO Mitsuharu
2009-02-12 10:22 ` Kenichi Handa
2009-02-12 18:42 ` Adrian Robert
2009-02-14 13:03 ` Kenichi Handa
2009-02-15 16:04 ` Adrian Robert
2009-02-16 0:53 ` Kenichi Handa
2009-02-16 4:09 ` Kenichi Handa
2009-02-17 10:15 ` Adrian Robert
2009-02-17 11:15 ` Kenichi Handa
2009-02-18 2:48 ` Kenichi Handa
2009-02-18 3:12 ` YAMAMOTO Mitsuharu
2009-02-18 4:01 ` Kenichi Handa
2009-02-18 5:43 ` YAMAMOTO Mitsuharu
2009-02-19 10:30 ` Adrian Robert
2009-02-24 2:55 ` Kenichi Handa [this message]
2009-02-16 0:33 ` YAMAMOTO Mitsuharu
2009-02-17 10:26 ` Adrian Robert
2009-02-17 11:09 ` YAMAMOTO Mitsuharu
2009-02-19 10:30 ` Adrian Robert
2009-02-20 1:19 ` YAMAMOTO Mitsuharu
2009-02-11 1:08 ` YAMAMOTO Mitsuharu
2009-02-10 12:59 ` William Xu
2009-02-09 14:39 ` William Xu
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=E1LbnSh-0003HG-8h@etlken \
--to=handa@m17n.org \
--cc=adrian.b.robert@gmail.com \
--cc=emacs-devel@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 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).