* font trickery
@ 2013-05-14 18:01 Hans Hagen
2013-05-14 22:51 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-05-14 18:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I'm on-and-off working on the more technical font manual and in the
process also check some old code i've laying around (deciding on what to
include and not). I'm also revising the tracer styles.
Which makes me wonder: are there specific additional features that one
would like to see in context (mkiv only of course) with respect to font
support?
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-14 18:01 font trickery Hans Hagen
@ 2013-05-14 22:51 ` Idris Samawi Hamid ادريس سماوي حامد
2013-05-15 6:09 ` Georg Duffner
0 siblings, 1 reply; 7+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-05-14 22:51 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Hi Hans,
On Tue, 14 May 2013 12:01:36 -0600, Hans Hagen <pragma@wxs.nl> wrote:
> I'm on-and-off working on the more technical font manual and in the
> process also check some old code i've laying around (deciding on what to
> include and not). I'm also revising the tracer styles.
>
> Which makes me wonder: are there specific additional features that one
> would like to see in context (mkiv only of course) with respect to font
> support?
This may be beyond the scope of your current plans, but worth considering:
It would be nice to have a mechanism where we can override/add opentype
gsub and gpos features. Early on in the history of luatex we once had a
mechanism that did this using FontForge's version of Adobe Feature Files.
From what I understand, the AFF syntax is finally mature and supports all
lookup types:
http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
Or maybe we have our own syntax in lua, goodies etc. Anyway, a way to
control/override opentype gsub and gpos behavior would be interesting.
Even if a total controller is too ambitious/unwieldy, just being able to
do a few basic gsub/gpos tricks may be useful for, e.g., bugs in the font.
Anyway, something to think about.
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-14 22:51 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2013-05-15 6:09 ` Georg Duffner
2013-05-15 14:51 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 7+ messages in thread
From: Georg Duffner @ 2013-05-15 6:09 UTC (permalink / raw)
To: ntg-context
Am 15.05.2013 00:51, schrieb Idris Samawi Hamid ادريس سماوي حامد:
> Hi Hans,
>
> On Tue, 14 May 2013 12:01:36 -0600, Hans Hagen <pragma@wxs.nl> wrote:
>
>> I'm on-and-off working on the more technical font manual and in the
>> process also check some old code i've laying around (deciding on what
>> to include and not). I'm also revising the tracer styles.
>>
>> Which makes me wonder: are there specific additional features that one
>> would like to see in context (mkiv only of course) with respect to
>> font support?
>
> This may be beyond the scope of your current plans, but worth
> considering: It would be nice to have a mechanism where we can
> override/add opentype gsub and gpos features. Early on in the history of
> luatex we once had a mechanism that did this using FontForge's version
> of Adobe Feature Files. From what I understand, the AFF syntax is
> finally mature and supports all lookup types:
>
> http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
>
> Or maybe we have our own syntax in lua, goodies etc. Anyway, a way to
> control/override opentype gsub and gpos behavior would be interesting.
> Even if a total controller is too ambitious/unwieldy, just being able to
> do a few basic gsub/gpos tricks may be useful for, e.g., bugs in the font.
>
> Anyway, something to think about.
>
> Best wishes
> Idris
Hi Idris and Hans,
this is a great idea. Is this not available any longer in current
luatex? The fontspec (xelatex+lualatex) manual lists this as a luatex
only feature (I’ve used it once some time ago). I know a lot of fonts
and other problems that could be fixed this way. I’d prefer to stay with
the AFF syntax which is well established.
Best regards,
Georg
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-15 6:09 ` Georg Duffner
@ 2013-05-15 14:51 ` Idris Samawi Hamid ادريس سماوي حامد
2013-05-15 16:41 ` Khaled Hosny
0 siblings, 1 reply; 7+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-05-15 14:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Georg,
On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner <g.duffner@gmail.com>
wrote:
> I’d prefer to stay with the AFF syntax which is well established.
I wonder if the latest, virtually frozen FontForge supports the current
AFF syntax or still uses an earlier version. Before AFF was complete
George added the missing functionality but Adobe did not accept his
additions. The former luatex support was probably based on George's
modifications to the AFF syntax.
Hans and Taco know better, but I suppose a newer implementation of AFF in
mkiv could be done in lua without touching the binary.
But anyway, this may very well be beyond Hans' current plans for font
trickery, but it's fun to discuss possibilities.
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-15 14:51 ` Idris Samawi Hamid ادريس سماوي حامد
@ 2013-05-15 16:41 ` Khaled Hosny
2013-05-17 23:55 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Khaled Hosny @ 2013-05-15 16:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, May 15, 2013 at 08:51:28AM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote:
> Hi Georg,
>
> On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner
> <g.duffner@gmail.com> wrote:
>
> >I’d prefer to stay with the AFF syntax which is well established.
>
> I wonder if the latest, virtually frozen FontForge supports the
> current AFF syntax or still uses an earlier version. Before AFF was
> complete George added the missing functionality but Adobe did not
> accept his additions. The former luatex support was probably based
> on George's modifications to the AFF syntax.
>
> Hans and Taco know better, but I suppose a newer implementation of
> AFF in mkiv could be done in lua without touching the binary.
Right, the version of FontForge included in LuaTeX uses the old syntax,
FontForge has dropped it for the new Adobe syntax for few years now, but
it didn’t make its way into LuaTeX.
Regards,
Khaled
> But anyway, this may very well be beyond Hans' current plans for
> font trickery, but it's fun to discuss possibilities.
I think there is already some (not documented way) to achieve the same
effect in pure Lua code (Hans uses it to implement tlig and the likes).
Regards,
Khaled
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-15 16:41 ` Khaled Hosny
@ 2013-05-17 23:55 ` Hans Hagen
2013-05-18 0:19 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2013-05-17 23:55 UTC (permalink / raw)
To: ntg-context
On 5/15/2013 6:41 PM, Khaled Hosny wrote:
> On Wed, May 15, 2013 at 08:51:28AM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote:
>> Hi Georg,
>>
>> On Wed, 15 May 2013 00:09:22 -0600, Georg Duffner
>> <g.duffner@gmail.com> wrote:
>>
>>> I’d prefer to stay with the AFF syntax which is well established.
>>
>> I wonder if the latest, virtually frozen FontForge supports the
>> current AFF syntax or still uses an earlier version. Before AFF was
>> complete George added the missing functionality but Adobe did not
>> accept his additions. The former luatex support was probably based
>> on George's modifications to the AFF syntax.
>>
>> Hans and Taco know better, but I suppose a newer implementation of
>> AFF in mkiv could be done in lua without touching the binary.
>
> Right, the version of FontForge included in LuaTeX uses the old syntax,
> FontForge has dropped it for the new Adobe syntax for few years now, but
> it didn’t make its way into LuaTeX.
>
> Regards,
> Khaled
>
>> But anyway, this may very well be beyond Hans' current plans for
>> font trickery, but it's fun to discuss possibilities.
>
> I think there is already some (not documented way) to achieve the same
> effect in pure Lua code (Hans uses it to implement tlig and the likes).
indeed. however the biggest challenge in patching a font runtime is
where to inject the patches in the look up sequence ...
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: font trickery
2013-05-17 23:55 ` Hans Hagen
@ 2013-05-18 0:19 ` Idris Samawi Hamid ادريس سماوي حامد
0 siblings, 0 replies; 7+ messages in thread
From: Idris Samawi Hamid ادريس سماوي حامد @ 2013-05-18 0:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 17 May 2013 17:55:10 -0600, Hans Hagen <pragma@wxs.nl> wrote:
> indeed. however the biggest challenge in patching a font runtime is
> where to inject the patches in the look up sequence ...
Indeed, I was thinking exactly the same thing! It needs some thought...
The simplest and safest idea may be to stack user-defined gsub lookups
after, and only after, the gsub lookups in the font are complete. Ditto
for gpos.
Best wishes
Idris
--
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-05-18 0:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 18:01 font trickery Hans Hagen
2013-05-14 22:51 ` Idris Samawi Hamid ادريس سماوي حامد
2013-05-15 6:09 ` Georg Duffner
2013-05-15 14:51 ` Idris Samawi Hamid ادريس سماوي حامد
2013-05-15 16:41 ` Khaled Hosny
2013-05-17 23:55 ` Hans Hagen
2013-05-18 0:19 ` Idris Samawi Hamid ادريس سماوي حامد
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).