On 2/15/2018 9:08 PM, Rik Kabel wrote:
On 2018-02-15 10:42, Henning Hraban Ramm wrote:
Ahoi, I was just pointed to this LaTeX package: https://github.com/davidcarlisle/dpctex/tree/master/typewriter
Origin/reasoning: https://tex.stackexchange.com/questions/344214/use-latex-to-simulate-old-typ...
hm, a real font mimmicking it is probably better because the shapes themslves need to change (actually this is doable in luatex but i have no time for that now ... also, i don't expect this kind of hackery / show-off to be used)
I guess it would be fun to have in ConTeXt - might fit ASCII math ;D
the last decade quite some examples have been made / posted / published that do tricks with fonts ... i bet no one really uses them
Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
___________________________________________________________________________________
While some of us might object to calling this ancient (_we_ aren't ancient, we are simply experienced), it does look like it might be fun.
Serendipitously, yesterday a friend pointed me to another retro font site: https://int10h.org/oldschool-pc-fonts/fontlist/. These are available in ttf. i'll add a luatex-fonts-demo-tt to the distribution which can be used
sure, nice for the ctx meeting (i can just grab and adapt code that is already around on my disk .. maybe it's about time for some cleanup of font experiments . i remember some nice experiments by hartmut in the early days of luatex) like this: \starttext \raggedright \definefontfeature[badtypewritera][ttgrayness=.5] \definefontfeature[badtypewriterb][ttshift=.5] \definefontfeature[badtypewriterc][ttthickness=2] \definefontfeature[badtypewriterd][ttgrayness=.5,ttshift=.5,ttthickness=2,ttfont={dejavusansmono}] \definefontfeature[badtypewritere][ttgrayness=.5,ttthickness=2,ttstep=2,ttmax=1.5] \definefont[MyFontA][file:tt.lua*badtypewritera] \definefont[MyFontB][file:tt.lua*badtypewriterb] \definefont[MyFontC][file:tt.lua*badtypewriterc] \definefont[MyFontD][file:tt.lua*badtypewriterd @ 10pt] \definefont[MyFontE][file:tt.lua*badtypewritere @ 10pt] \MyFontA \input tufte \blank {\righttoleft لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.} \page \MyFontB \input tufte \blank {\righttoleft لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.} \page \MyFontC \input tufte \blank {\righttoleft لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.} \page \MyFontD \input tufte \blank {\righttoleft لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.} \page \MyFontE \input tufte \blank {\righttoleft لَيْسَ لَدَيَّ أَيُّ فِكْرَةٍ عَمَّا يَعْنِيهِ هٰذَا.} \page \stoptext fwiw, the current luatex vf interface is stepwise made a bit better as mixing pdf code into shapes is kind of tricky wrrt the backend character stream flushing (so it's fragile and has limitations) .. i occasionally look into it 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 -----------------------------------------------------------------