[NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
Hi, why is the second line right-aligned in the following example? \definetextext [foo] [#1]#2{\switchtobodyfont[#1]#2} \starttext \dorecurse{5}{ \startMPcode draw \sometxt[foo][sans]{FooBar}; \stopMPcode \startMPcode draw \sometxt[foo][iwona]{FooBar};

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Wolfgang Schuster
Am 28.04.2013 um 19:56 schrieb Marco Patzer home...@lavabit.com: Hi, why is the second line right-aligned in the following example? The first you use the iwona font in your document context has to load the typescript for it from a external files which produces a lot of spaces in the text.

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
On 2013–04–28 Wolfgang Schuster wrote: Am 28.04.2013 um 19:56 schrieb Marco Patzer home...@lavabit.com: Hi, why is the second line right-aligned in the following example? The first you use the iwona font in your document context has to load the typescript for it from a external

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Keith J. Schultz
Hi All, can someone explain to me why loading a file/typescript is producing spaces If the code that does load the file/s produced spaces for debugging purposes that is fine, but should not they actually going somewhere else? Then with a decent message!? Personally, I find it a bug if

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Wolfgang Schuster
Am 28.04.2013 um 20:37 schrieb Marco Patzer home...@lavabit.com: On 2013–04–28 Wolfgang Schuster wrote: Am 28.04.2013 um 19:56 schrieb Marco Patzer home...@lavabit.com: Hi, why is the second line right-aligned in the following example? The first you use the iwona font in your

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Marco Patzer
On 2013–04–28 Keith J. Schultz wrote: can someone explain to me why loading a file/typescript is producing spaces The typescripts themselves are full of spaces and new lines. And you really want those spaces for readability. TeX usually squashes multiple spaces into one, but spaces still

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Hans Hagen
On 4/28/2013 10:03 PM, Marco Patzer wrote: This is usually not a problem, since typescripts are loaded in the setup area. Even when loaded within the text area the spaces don't cause problems. Loading an entire file within a box, like I did in the example, is an unusual edge-case and there's a

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Keith J. Schultz
Hi Marco, All, agreed you can avoid the spaces by putting the usetypescript in the preamble, but should not the loading of a typescript not bleed any spaces! regards Keith. Am 28.04.2013 um 22:03 schrieb Marco Patzer home...@lavabit.com: On 2013–04–28 Keith J. Schultz wrote: can

Re: [NTG-context] Offset MP text with font change

2013-04-28 Thread Hans Hagen
On 4/29/2013 12:42 AM, Keith J. Schultz wrote: Hi Marco, All, agreed you can avoid the spaces by putting the usetypescript in the preamble, but should not the loading of a typescript not bleed any spaces! it's not the typescript that has the space but the file ... a typescript file can have