Article View: news.software.readers
Article #260757Re: [Fonts] Checking glyph population
From: Michael Bäuerle
Date: Mon, 18 Jul 2016 17:06
Date: Mon, 18 Jul 2016 17:06
52 lines
4267 bytes
4267 bytes
Bernd Rose wrote:
> On Sat, 16 Jul 2016 12:04:31 -0000, Michael Bäuerle wrote:
> >
> [Gucharmap showing glyphs, that are not present in the selected font]
> > For me it doesn't look like a bug. More that the program was written
> > for a different purpose (searching for special characters, look how GTK+
> > will render the glyphs for them and then copy&paste the characters to
> > other applications).
>
> In composite view mode, that would be expected behavior. In single
> font mode ("only glyphs from the selected font"), the "embedded"
> glyphs should, IMHO, be omitted.
>
> [Testing BabelMap with Wine]
> > I will try it, but I use different Unix systems. Some of them have
> > non-x86 CPUs (like this one) and then at least an additional CPU-
> > Emulation like qemu will be required for Windows programs.
>
> If you know any way to restrict a browser from using fonts in composite
> mode, you could also use the minimal BabelMap online version:
>
> www.babelstone.co.uk/Unicode/babelmap.html
>
> But usually, the mapping is handled on system level. So that wouldn't
> probably be an actual option, after all...
The test with Wine failed because my NetBSD system is 64bit only, but
the wine package from pkgsrc requires 32bit.
> Maybe, pyFontaine is better suited for your needs:
>
> http://pygarden.com/pkg/fontaine
Looks still like overkill. I have found this program:
<https://github.com/repolho/has_char>
Nearly what I want, but checks a string. It's so small that I have now
rewritten it that style myself (10 kByte) to check a single codepoint:
|
| $ glyphcheck "DejaVu Sans" U+1E9E
| --------------------------------------------------------------------------------
| Selected font : DejaVu Sans
| Total glyph count: 5888
| Codepoint : U+1E9E
| --------------------------------------------------------------------------------
| => Glyph present
| $ glyphcheck "DejaVu Sans Mono" U+1E9E
| --------------------------------------------------------------------------------
| Selected font : DejaVu Sans Mono
| Total glyph count: 3313
| Codepoint : U+1E9E
| --------------------------------------------------------------------------------
| => No glyph
Technical Details
Message-ID:
<AABXjQx7Fi8AAAsX.A1.flnews@WStation5.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<nli1e8$hi6$1@news.mixmin.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net> <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de> <nlu497$e1t$1@justacineast.motzarella.org> <AABXg26LHmoAAA80.A1.flnews@WStation5.stz-e.de> <8rvhm2iwm3r5$.1rx0y710bzqpv$.dlg@40tude.net> <AABXhLSbLEAAABYb.A1.flnews@WStation5.stz-e.de> <1ldazkv3snk57.1esf7pd9mb399$.dlg@40tude.net> <AABXhhOzaT0AAAdg.A1.flnews@WStation5.stz-e.de> <159hdy6c7ud30.ayfl7s1oi3gc.dlg@40tude.net> <AABXh15wK74AABXd.A1.flnews@WStation5.stz-e.de> <AABXh5efK8EAABXd.A1.flnews@WStation5.stz-e.de> <mf62xs5nh92j$.dlg@b.rose.tmpbox.news.arcor.de> <AABXh68WK8UAABXd.A1.flnews@WStation5.stz-e.de> <tyu2ibv2k6c8$.dlg@b.rose.tmpbox.news.arcor.de> <AABXiKglF7wAAAvc.A1.flnews@WStation5.stz-e.de> <AABXiRXSF8YAAAvc.A1.flnews@WStation5.stz-e.de> <1jbuwywveigxn.dlg@b.rose.tmpbox.news.arcor.de> <AABXiiLPbwAAAFHc.A1.flnews@WStation4.micha.freeshell.org> <gnnfkftjyfrn.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <AABXjQx7Fi8AAAsX.A1.flnews@WStation5.stz-e.de> Subject: Re: [Fonts] Checking glyph population Date: Mon, 18 Jul 2016 19:06:03 +0200 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <nli1e8$hi6$1@news.mixmin.net> <AABXf2MrD54AAAfO.A1.flnews@WStation5.stz-e.de> <nlobd6$eij$1@news.albasani.net> <AABXf8FmZmAAADMv.A1.flnews@WStation5.stz-e.de> <nlu497$e1t$1@justacineast.motzarella.org> <AABXg26LHmoAAA80.A1.flnews@WStation5.stz-e.de> <8rvhm2iwm3r5$.1rx0y710bzqpv$.dlg@40tude.net> <AABXhLSbLEAAABYb.A1.flnews@WStation5.stz-e.de> <1ldazkv3snk57.1esf7pd9mb399$.dlg@40tude.net> <AABXhhOzaT0AAAdg.A1.flnews@WStation5.stz-e.de> <159hdy6c7ud30.ayfl7s1oi3gc.dlg@40tude.net> <AABXh15wK74AABXd.A1.flnews@WStation5.stz-e.de> <AABXh5efK8EAABXd.A1.flnews@WStation5.stz-e.de> <mf62xs5nh92j$.dlg@b.rose.tmpbox.news.arcor.de> <AABXh68WK8UAABXd.A1.flnews@WStation5.stz-e.de> <tyu2ibv2k6c8$.dlg@b.rose.tmpbox.news.arcor.de> <AABXiKglF7wAAAvc.A1.flnews@WStation5.stz-e.de> <AABXiRXSF8YAAAvc.A1.flnews@WStation5.stz-e.de> <1jbuwywveigxn.dlg@b.rose.tmpbox.news.arcor.de> <AABXiiLPbwAAAFHc.A1.flnews@WStation4.micha.freeshell.org> <gnnfkftjyfrn.dlg@b.rose.tmpbox.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Lines: 52 Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net RhPJPZ6cJBVMokMJ2KWlrgeISdH3Vo4S9Vb7xbz+CudJTOrKGT X-Orig-Path: not-for-mail Cancel-Lock: sha1:JLyWdQAgdhbb/iyfI3i1gjHuGsM= sha1:nNvFbwheW3V6NspTrZL75DgE8PM= Injection-Date: Mon, 18 Jul 2016 17:06:03 -0000 User-Agent: flnews/0.14pre45 (for NetBSD) X-Received-Body-CRC: 2409624688 X-Received-Bytes: 4122