ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan via ntg-context <ntg-context@ntg.nl>
To: "Jairo A. del Rio via ntg-context" <ntg-context@ntg.nl>
Cc: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Harfbuzz plugin and colors
Date: Mon, 14 Feb 2022 02:05:48 -0500 (EST)	[thread overview]
Message-ID: <nycvar.YAK.7.78.908.2202140204080.136059@nqv-guvaxcnq> (raw)
In-Reply-To: <CAKyqqaZiG2DrRmbE-KvfGkDMxG33Nb6WshaqrO_r1mXqtfEBVw@mail.gmail.com>

On Sun, 13 Feb 2022, Jairo A. del Rio via ntg-context wrote:

> Hi, list! I've tested the Harfbuzz plugin in ConTeXt and it works nicely
> for most cases. However, color doesn't seem to work. Is this intended? I
> know this plugin won't be supported, but I'll be fine with pointers to
> solve this issue. Thanks in advance.
> 
> \usemodule[fonts-plugins]
> \definefontfeature[harf]
>   [mode=plug,
>    features=harfbuzz,
>    shaper=native]
> %Just to test Harfbuzz is actually working
> \definefontfeature[devaA][harf]
>   [language=dflt,
>    script=deva]
> \definefontfeature[devaB][default]
>   [script=deva]
> \definefontfeature[colored][harf]
>   [language=dflt,script=arab,
>    colr=yes] %doesn't do anything

Wouldn't you also have to enable the colored feature somewhere?

> \starttext
> {\righttoleft\definedfont[file:AmiriQuranColored.ttf*colored]\input{khatt-ar}}
> 
> {\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi]}
> \blank[line]
> {\definedfont[file:Lohit-Devanagari.ttf*devaB]\getbuffer[hindi]}
> \stoptext

Aditya
___________________________________________________________________________________
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:[~2022-02-14  7:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-14  2:47 Jairo A. del Rio via ntg-context
2022-02-14  7:05 ` Aditya Mahajan via ntg-context [this message]
2022-02-14  8:21 ` Hans Hagen via ntg-context

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=nycvar.YAK.7.78.908.2202140204080.136059@nqv-guvaxcnq \
    --to=ntg-context@ntg.nl \
    --cc=adityam@umich.edu \
    /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).