Hi, I'm looking for nice and short ways to remove spaces from strings with font names. I found the \unspacestring command in the core to do what I want but prefer a alternative solution or a few tips for the following code. \starttext \bgroup \catcode`\ =9 \definedfont[name:TeX Gyre Pagella Regular]text \egroup \stoptext Wolfgang
Wolfgang Schuster wrote:
Hi,
I'm looking for nice and short ways to remove spaces from strings with font names. I found the \unspacestring command in the core to do what I want but prefer a alternative solution or a few tips for the following code.
\starttext
\bgroup
\catcode`\ =9
\definedfont[name:TeX Gyre Pagella Regular]text
\egroup
\stoptext
Just enter TeXGyrePagellaRegular as mkiv will ignore spaces anyway ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 06.05.2009 um 09:33 schrieb Hans Hagen:
Wolfgang Schuster wrote:
Hi, I'm looking for nice and short ways to remove spaces from strings with font names. I found the \unspacestring command in the core to do what I want but prefer a alternative solution or a few tips for the following code. \starttext \bgroup \catcode`\ =9 \definedfont[name:TeX Gyre Pagella Regular]text \egroup \stoptext
Just enter TeXGyrePagellaRegular as mkiv will ignore spaces anyway
I can make a note for other users to write the font name without spaces but I don't know where you mean MkIV will ignore spaces, this definitely not the case when I ask for a font. \starttext \definedfont[name:TeX Gyre Pagella Regular]text \stoptext In this example I get 'TeX Gyre Termes Regular' in the output and to prevent this I remove all spaces from the input (the given font name). Wolfgang
participants (2)
-
Hans Hagen
-
Wolfgang Schuster