Re: [NTG-context] lower case a incompatible with hanging

2009-12-21 Thread Lutz Haseloff
2009/12/19 Taco Hoekwater t...@elvenkind.com

 Hi,

 This was a bug in luatex: the function that copies the font
 information from the base font to the expanded font did not
 copy the last glyph at all. There is a one-character patch to
 trunk/source/texk/web2c/luatexdir/font/texfont.c:


 @@ -1094,7 +1094,7 @@
 memcpy(math_param_base(k), math_param_base(f), i);
 }

 -for (i = 0; i  font_tables[f]-charinfo_count; i++) {
 +for (i = 0; i = font_tables[f]-charinfo_count; i++) {
 ci = copy_charinfo(font_tables[f]-charinfo[i]);
 font_tables[k]-charinfo[i] = *ci;
 }

 And that fixes it.

 The only oddness with this particular font is that the 'a' happens
 to be its last glyph in the ordering of the glyph implementations
 inside the otf file. Usually, the last of those is something odd
 like an alternate or a designer' logo, which is probably why nobody
 noticed before.


 Lutz Haseloff wrote:

 Hi Michael,

 Your file works here without problems with the same ConTeXt and
 LuaTeX, Version beta-0.47.0-2009121623.


 That's weird, did you use Michaels font?


I don't think so:

My OctavianMTStd.otf:
Version 2.040;PS 002.000;honconv 1.0.51;makeotf.lib 2.0.18671


Greetings Lutz



 Best wishes,
 Taco


 ___
 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

 ___

___
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
___


[NTG-context] lower case a incompatible with hanging

2009-12-21 Thread Michael Green

On Dec 21, 2009, at 3:00 AM, Lutz Haseloff wrote:


2009/12/19 Taco Hoekwater t...@elvenkind.com


Hi,

This was a bug in luatex: the function that copies the font
information from the base font to the expanded font did not
copy the last glyph at all.


[snip]



Lutz Haseloff wrote:


Hi Michael,

Your file works here without problems with the same ConTeXt and
LuaTeX, Version beta-0.47.0-2009121623.



That's weird, did you use Michaels font?



I don't think so:

My OctavianMTStd.otf:
Version 2.040;PS 002.000;honconv 1.0.51;makeotf.lib 2.0.18671


Greetings Lutz



They're different. Mine is: Version 1.047;PS 001.000;Core  
1.0.38;makeotf.lib1.6.5960


mjg

___
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
___


Re: [NTG-context] lower case a incompatible with hanging

2009-12-19 Thread Taco Hoekwater

Hi,

This was a bug in luatex: the function that copies the font
information from the base font to the expanded font did not
copy the last glyph at all. There is a one-character patch to
trunk/source/texk/web2c/luatexdir/font/texfont.c:


@@ -1094,7 +1094,7 @@
 memcpy(math_param_base(k), math_param_base(f), i);
 }

-for (i = 0; i  font_tables[f]-charinfo_count; i++) {
+for (i = 0; i = font_tables[f]-charinfo_count; i++) {
 ci = copy_charinfo(font_tables[f]-charinfo[i]);
 font_tables[k]-charinfo[i] = *ci;
 }

And that fixes it.

The only oddness with this particular font is that the 'a' happens
to be its last glyph in the ordering of the glyph implementations
inside the otf file. Usually, the last of those is something odd
like an alternate or a designer' logo, which is probably why nobody
noticed before.

Lutz Haseloff wrote:

Hi Michael,

Your file works here without problems with the same ConTeXt and
LuaTeX, Version beta-0.47.0-2009121623.


That's weird, did you use Michaels font?

Best wishes,
Taco
___
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
___


Re: [NTG-context] lower case a incompatible with hanging

2009-12-18 Thread Lutz Haseloff
Hi Michael,

Your file works here without problems with the same ConTeXt and
LuaTeX, Version beta-0.47.0-2009121623.

Greetings Lutz


2009/12/17 Michael Green merely.ridicul...@gmail.com

 I have a font oddity to report: if I use \setupalign [hanging,hz], the
 lower case letter a disappears in a particular font.

 This doesn't happen with other fonts and the missing letter comes back if I
 remove \setupalign [hanging,hz].

 If this is a bug that you would like to investigate, I would be happy to
 send the font privately.

 Michael

 This is LuaTeX, Version beta-0.46.0-2009112820

 ConTeXt  ver: 2009.12.15 23:38 MKIV  fmt: 2009.12.16  int: english/english



 ___
 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

 ___


___
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
___