From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Zigzag left margin with italics
Date: Mon, 4 Nov 2024 10:51:20 -0500 [thread overview]
Message-ID: <8cf8a268-9e1d-41fb-a345-bac6fcae47d7@rik.users.panix.com> (raw)
In-Reply-To: <CAHy-LL-s-9Vu-q6rXfvKvA4xtQBtOZ-fZSDpaLP2Lha7o2dcWw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 592 bytes --]
On 2024-11-04 01:35, Mikael Sundqvist wrote:
> \startluacode
>
> local classes = fonts.protrusions.classes
> local vectors = fonts.protrusions.vectors
>
> classes.rik = {
> vector = 'rik',
> factor = 1,
> }
>
> vectors.rik = table.merged (
> vectors.quality,
> {
> [0x0054] = { 0.35, 0 }, -- T
> })
>
> \stopluacode
That, of course, works (I would use 0.175 for Libertinus) but as you
point out does not distinguish roman and italic.
Perhaps instead of protrusion there is something that can be done with
the bounding box of specific characters.
--
Rik
[-- Attachment #1.2: Type: text/html, Size: 1002 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2024-11-04 15:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-04 1:34 [NTG-context] " Rik Kabel
2024-11-04 6:35 ` [NTG-context] " Mikael Sundqvist
2024-11-04 15:51 ` Rik Kabel [this message]
2024-11-04 15:55 ` Wolfgang Schuster
2024-11-04 17:39 ` Rik Kabel
2024-11-04 17:54 ` Hans Hagen
2024-11-04 21:49 ` Rik Kabel
2024-11-04 22:10 ` Wolfgang Schuster
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=8cf8a268-9e1d-41fb-a345-bac6fcae47d7@rik.users.panix.com \
--to=context@rik.users.panix.com \
--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).