Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #3271

Re: Interrogating a font

X-Received by 2002:a37:1311:: with SMTP id d17-v6mr7767249qkh.21.1529356934235; Mon, 18 Jun 2018 14:22:14 -0700 (PDT)
X-Received by 2002:a37:4d41:: with SMTP id a62-v6mr409877qkb.3.1529356933776; Mon, 18 Jun 2018 14:22:13 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h2-v6no3019244qtp.0!news-out.google.com!a20-v6ni964qtj.1!nntp.google.com!h2-v6no3019236qtp.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.postscript
Date Mon, 18 Jun 2018 14:22:13 -0700 (PDT)
In-Reply-To <c66ccb1f-ee64-48c2-9d80-0c018c89b137@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=71.198.191.204; posting-account=qj9VMQoAAAATCUPv8aBboHlL0HOtHcPM
NNTP-Posting-Host 71.198.191.204
References <c66ccb1f-ee64-48c2-9d80-0c018c89b137@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <80d271e1-9d5c-489d-853b-11225edbbf74@googlegroups.com> (permalink)
Subject Re: Interrogating a font
From deedubman@gmail.com
Injection-Date Mon, 18 Jun 2018 21:22:14 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 14
Xref csiph.com comp.lang.postscript:3271

Show key headers only | View raw


Doesn't ascender refer to lower-case letters that project above the x-height like b, d, f, h, k, l, and t? I would take the max of this set. Also take the min of g, j, p, q, and y for descender. 

For stem-v I remember doing a small survey of fonts for which I had AFM files (which have stem-v) and then trying to tune an algorithm such as you described to match the known data, maybe make a wide but thin clip rectangle that crosses the stem of "I" in the middle, which is also 'true charpath clip', then 'clippath pathbbox' that result, get the width. If it could reasonably guess at known stem-v values then I could trust it in the unknown case. But then I noticed (if we are talking about PDF) that a lot of PDF software seems to not care about the stem-v value in font desccriptors, it was often zero.

David

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Interrogating a font luser droog <luser.droog@gmail.com> - 2018-03-27 15:57 -0700
  Re: Interrogating a font Mark Carroll <mtbc@bcs.org> - 2018-03-28 07:32 +0100
  Re: Interrogating a font deedubman@gmail.com - 2018-06-18 14:22 -0700
    Re: Interrogating a font luser droog <luser.droog@gmail.com> - 2018-06-18 23:13 -0700

csiph-web