ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hironori KITAGAWA <h_kitagawa2001@yahoo.co.jp>
To: ntg-context@ntg.nl
Subject: VORG and vmtx table in fontloader
Date: Mon, 22 Jul 2019 18:03:14 +0900	[thread overview]
Message-ID: <20190722180314.1ba2e49a97dbdb71ebf0c42e@yahoo.co.jp> (raw)

Hello all,

It seems that ConTeXt's fontloader (hence luaotfload's fontloader) 
skips to load the VORG table and topSideBearing in the vmtx table
These informations are used to get the vertical origin of a glyph.

> readers.vorg = function(f,fontdata,specification)
>     reportskippedtable(f,fontdata,"vorg",specification.glyphs)
> end

> readers.vmtx = function(f,fontdata,specification)
> ...
>         for i=0,nofmetrics-1 do
>          ... 
>             if vheight ~= 0 and vheight ~= vdefault then
>                 glyph.vheight = vheight
>             end
>          -- if topsidebearing ~= 0 then
>          --     glyph.tsb = topsidebearing
>          -- end

I don't know whether vertical metrics are used in ConTeXt.
But, they will be useful for other packages (e.g., LuaTeX-ja)
to improve vertical typesetting.

Regards
Hironori KITAGAWA
<h_kitagawa2001@yahoo.co.jp>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

                 reply	other threads:[~2019-07-22  9:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190722180314.1ba2e49a97dbdb71ebf0c42e@yahoo.co.jp \
    --to=h_kitagawa2001@yahoo.co.jp \
    --cc=ntg-context@ntg.nl \
    /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 NNTP newsgroup(s).