ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* VORG and vmtx table in fontloader
@ 2019-07-22  9:03 Hironori KITAGAWA
  0 siblings, 0 replies; only message in thread
From: Hironori KITAGAWA @ 2019-07-22  9:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-22  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-22  9:03 VORG and vmtx table in fontloader Hironori KITAGAWA

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).