unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Unicode box-drawing chars
Date: Sat, 14 Sep 2002 22:49:11 +0200	[thread overview]
Message-ID: <m3admkpa9k.fsf@defun.localdomain> (raw)
In-Reply-To: m34rcuumcj.fsf@ID-87814.user.dfncis.de

Oliver Scholz <alkibiades@gmx.de> writes:

> Yes. And even when there is a unicode font, it is quite possible that
> it does not contain the box-drawing glyphs.
>
> Is it possible to check from lisp if a font actually contains a glyph?

This isn't a very good solution (and it'll only work on X11):

You can determine which font Emacs will use with `internal-char-font'.
You could then call

    xlsfonts -lll -fn FONT

and parse the output to get the font metrics.  If the metrics for a
particular code point contains all zeros, say

           0x009f (159)	   0     0     0     0     0  0x0000  .

then the glyph doesn't exist in this font.

  reply	other threads:[~2002-09-14 20:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 14:42 Unicode box-drawing chars Oliver Scholz
2002-09-12 13:27 ` Jesper Harder
2002-09-12 14:09   ` Kai Großjohann
2002-09-13  1:15     ` Galen Boyer
2002-09-13  1:36     ` Jesper Harder
2002-09-13 12:04       ` Oliver Scholz
2002-09-14 20:49         ` Jesper Harder [this message]
2002-09-12 13:56 ` Kai Großjohann
2002-09-12 15:44   ` Roman Belenov
2002-09-13 11:57   ` Oliver Scholz
2002-09-13 16:14     ` Kai Großjohann
2002-09-14  7:46       ` Graphics in Emacs (was: Unicode box-drawing chars) Oliver Scholz
2002-09-14  6:59         ` Stefan Monnier <foo@acm.com>
2002-09-15 19:58           ` Oliver Scholz

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=m3admkpa9k.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /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.
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).