ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez <oinos@gmx.es>
Subject: Re: issue with optical bounds (OpenType)
Date: Sun, 9 Dec 2018 18:53:53 +0100	[thread overview]
Message-ID: <dbef716c-0e22-0667-c14e-0a90e7c09ebe@xs4all.nl> (raw)
In-Reply-To: <1fb004d1-4dae-23eb-7f1d-d8b807361c95@gmx.es>

On 12/9/2018 5:35 PM, Pablo Rodriguez wrote:
> On 12/9/18 2:22 PM, Hans Hagen wrote:
>>> [...]
>> you confuse mechanism:
>>
>> - protrusion only happen at the start and end of the line
>> - kerning (like single does) happens everywhere
>>
>> so, you need to extend "lfbd" and not use some own kerning feature
>> "leftbounds" which applyu it everywhere while "lfbd" is treated special
>> i.e. sets the protrusion values (when "opbd" is enabled) ... no other
>> way to do this
> 
> In that case, I have some questions:
> 
> -Is it possible to enable standard protrusion with opbd? (I mean, I
> don’t any other character protruded when opbd is enabled.)

well, you want to use what the font provides and if the font is 
incomplete i'd not trust the bits that are there either

when opbd is enabled protrusion is taken from that so you should add all 
chars that you want to prodrude then in an addendum to is (k

> -Is there any way that I can apply pure raw lfbd/rtbd values to
> protrusion with no other protrusion calculation at all in opbd?

you can create your own vectors if you want

> -In order to avoid editing all the Greek fonts to get hanging
> diacritics: is there any way to replicate the lfbd feature with
> "fonts.handlers.otf.addfeature"?

probably with some lua magic one can do a lot but these are typical 
things i do when i need them (also because one needs to check the whole 
of unicode and cook up categories, this kind of stuff is: do it all 
robust and well or don't do it; also one doesn't know how consistent 
font designs are)
  Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2018-12-09 17:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-07 18:54 Pablo Rodriguez
2018-12-07 19:15 ` Hans Hagen
2018-12-07 20:14   ` Pablo Rodriguez
2018-12-07 22:25     ` Hans Hagen
2018-12-09 12:34       ` Pablo Rodriguez
2018-12-09 13:22         ` Hans Hagen
2018-12-09 16:35           ` Pablo Rodriguez
2018-12-09 17:53             ` Hans Hagen [this message]
2018-12-09 19:54               ` Pablo Rodriguez
2018-12-10  9:51                 ` Hans Hagen
2018-12-10 19:19                   ` Pablo Rodriguez

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=dbef716c-0e22-0667-c14e-0a90e7c09ebe@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).