Hi, Is there a monospaced font which matches with Latin Modern and contains greek letters? I could only find DejaVu Sans Mono, but it does not match LM. Thanks, Aditya
On Tue, 8 Sep 2009, Wolfgang Schuster wrote:
Am 08.09.2009 um 06:56 schrieb Aditya Mahajan:
Hi,
Is there a monospaced font which matches with Latin Modern and contains greek letters?
Computer Modern Unicode Sans Serif
How do I remove font features with xetex? I have the following example, with cmuntt taken from ftp://canopus.iacp.dvo.ru/pub/Font/cm_unicode/cm-unicode-0.6.3a-otf.tar.gz \starttypescript [mono] [cmunicode] %\setups[font:fallback:mono] \definefontsynonym [Mono] [file:cmuntt] [features=none] \definefontsynonym [MonoItalic] [file:cmuntt] [features=none] \definefontsynonym [MonoBold] [file:cmuntt] [features=none] \definefontsynonym [MonoBoldItalic] [file:cmuntt] [features=none] \stoptypescript \definetypeface[mainface][rm][serif][modern] [default] \definetypeface[mainface][ss][sans] [modern] [default] \definetypeface[mainface][tt][mono][cmunicode] [default] \definetypeface[mainface][mm][math][modern] [default] \setupbodyfont[mainface,10pt] \starttext \type{suffix} \type{αβγ} \stoptext With luatex it works fine, but with xetex I get the ffi ligature in "suffix". Any idea how to get rid of it in xetex? Thanks, Aditya
Aditya Mahajan wrote:
On Tue, 8 Sep 2009, Wolfgang Schuster wrote:
Am 08.09.2009 um 06:56 schrieb Aditya Mahajan:
Hi,
Is there a monospaced font which matches with Latin Modern and contains greek letters?
Computer Modern Unicode Sans Serif
How do I remove font features with xetex? I have the following example, with cmuntt taken from ftp://canopus.iacp.dvo.ru/pub/Font/cm_unicode/cm-unicode-0.6.3a-otf.tar.gz
\starttypescript [mono] [cmunicode] %\setups[font:fallback:mono] \definefontsynonym [Mono] [file:cmuntt] [features=none] \definefontsynonym [MonoItalic] [file:cmuntt] [features=none] \definefontsynonym [MonoBold] [file:cmuntt] [features=none] \definefontsynonym [MonoBoldItalic] [file:cmuntt] [features=none] \stoptypescript
\definetypeface[mainface][rm][serif][modern] [default] \definetypeface[mainface][ss][sans] [modern] [default] \definetypeface[mainface][tt][mono][cmunicode] [default] \definetypeface[mainface][mm][math][modern] [default]
\setupbodyfont[mainface,10pt]
\starttext \type{suffix} \type{αβγ} \stoptext
With luatex it works fine, but with xetex I get the ffi ligature in "suffix". Any idea how to get rid of it in xetex?
what happens if you define 'none' to disable liga explicitly Hans ----------------------------------------------------------------- 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 12.09.2009 um 14:50 schrieb Hans Hagen:
what happens if you define 'none' to disable liga explicitly
the three argument version of \definefontfeature is more handy but the definition for mkii makes no sense \def\dodefinefontfeature[#1][#2][#3]% {\doifassignmentelse{#2} {\setevalue{\??fa#1}{#2}} {\let\!!stringa\empty \def\mkdodefinefontfeature##1{\edef\!!stringa{\ifx\!!stringa \empty\else\!!stringa,\fi##1}}% \processcommalist[#2]\mkdodefinefontfeature \setevalue{\??fa#1}{\ifx\!!stringa\empty\else\!!stringa,\fi#3}}} wouldn't be ... \def\mkdodefinefontfeature##1% {\edef\!!stringa{\ifx\!!stringa\empty\else\!!stringa,\fi \executeifdefined{\??fa##1}\empty}}% ... better? Wolfgang
Wolfgang Schuster wrote:
Am 12.09.2009 um 14:50 schrieb Hans Hagen:
what happens if you define 'none' to disable liga explicitly
the three argument version of \definefontfeature is more handy but the definition for mkii makes no sense
\def\dodefinefontfeature[#1][#2][#3]% {\doifassignmentelse{#2} {\setevalue{\??fa#1}{#2}} {\let\!!stringa\empty
\def\mkdodefinefontfeature##1{\edef\!!stringa{\ifx\!!stringa\empty\else\!!stringa,\fi##1}}%
\processcommalist[#2]\mkdodefinefontfeature \setevalue{\??fa#1}{\ifx\!!stringa\empty\else\!!stringa,\fi#3}}}
wouldn't be
... \def\mkdodefinefontfeature##1%
{\edef\!!stringa{\ifx\!!stringa\empty\else\!!stringa,\fi\executeifdefined{\??fa##1}\empty}}%
...
better?
sure. actually most of these \mk* macros hav eto go (date from the shared time) Hans ----------------------------------------------------------------- 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 12.09.2009 um 05:31 schrieb Aditya Mahajan:
How do I remove font features with xetex?
On Sat, 12 Sep 2009, Wolfgang Schuster wrote:
Does \definefontfeature[default][default][liga=no] work?
On Sat, 12 Sep 2009, Hans Hagen wrote:
what happens if you define 'none' to disable liga explicitly
Thanks. Basically I ended up with \definefontfeature[reallynone][none][liga=no] and then use features=reallynone in the typescripts. I am still curious on why features=none does not work out of the box with xetex. Aditya
Aditya Mahajan wrote:
Am 12.09.2009 um 05:31 schrieb Aditya Mahajan:
How do I remove font features with xetex?
On Sat, 12 Sep 2009, Wolfgang Schuster wrote:
Does \definefontfeature[default][default][liga=no] work?
On Sat, 12 Sep 2009, Hans Hagen wrote:
what happens if you define 'none' to disable liga explicitly
Thanks. Basically I ended up with
\definefontfeature[reallynone][none][liga=no]
and then use features=reallynone in the typescripts. I am still curious on why features=none does not work out of the box with xetex.
In mkiv we have: \definefontfeature [none] [mode=none,features=no] but none is not defined in mkii so, i defined it and also extended the xetex handler to listen to features=no but still xetex does ligatures so it maybe that xetex also has some defaults built in but i leave that to you to figure out Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Wolfgang Schuster