ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* lower case "a" incompatible with hanging
       [not found] <mailman.1.1261393203.2155.ntg-context@ntg.nl>
@ 2009-12-21 14:22 ` Michael Green
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Green @ 2009-12-21 14:22 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

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

> 2009/12/19 Taco Hoekwater <taco@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


[-- Attachment #1.2: Type: text/html, Size: 4491 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lower case "a" incompatible with hanging
  2009-12-19 11:57   ` Taco Hoekwater
@ 2009-12-21  8:20     ` Lutz Haseloff
  0 siblings, 0 replies; 5+ messages in thread
From: Lutz Haseloff @ 2009-12-21  8:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1817 bytes --]

2009/12/19 Taco Hoekwater <taco@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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3062 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lower case "a" incompatible with hanging
  2009-12-18 10:29 ` Lutz Haseloff
@ 2009-12-19 11:57   ` Taco Hoekwater
  2009-12-21  8:20     ` Lutz Haseloff
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2009-12-19 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lower case "a" incompatible with hanging
  2009-12-17 21:38 Michael Green
@ 2009-12-18 10:29 ` Lutz Haseloff
  2009-12-19 11:57   ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Lutz Haseloff @ 2009-12-18 10:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1199 bytes --]

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.ridiculous@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
>
> ___________________________________________________________________________________
>
>

[-- Attachment #1.2: Type: text/html, Size: 1918 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* lower case "a" incompatible with hanging
@ 2009-12-17 21:38 Michael Green
  2009-12-18 10:29 ` Lutz Haseloff
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Green @ 2009-12-17 21:38 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]

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


[-- Attachment #2: octavian-test.pdf --]
[-- Type: application/pdf, Size: 66231 bytes --]

[-- Attachment #3: octavian-test.tex --]
[-- Type: application/octet-stream, Size: 2017 bytes --]

\definefontfeature[smallcaps][language=DFLT,script=latn,kern=yes,smcp=yes,tlig=yes,trep=yes,liga=yes,protrusion=pure,mode=node,expansion=quality]
\definefontfeature[oldstyle][language=DFLT,script=latn,kern=yes,onum=yes,tlig=yes,trep=yes,liga=yes,protrusion=pure,mode=node,expansion=quality]

\definebodyfontenvironment[default][em=italic]


\starttypescript[serif][octavian]
\definefontsynonym  [OctavianRegular][name:OctavianMTStd][features=default]
\definefontsynonym  [OctavianItalic] [name:OctavianMTStd-Italic][features=default]
\definefontsynonym  [OctavianBold] [name:OctavianMTStd][features=default]% Octavian lacks a bold weight
\definefontsynonym  [OctavianBoldItalic] [name:OctavianMTStd-Italic][features=default]% Octavian lacks a bold weight
\definefontsynonym  [OctavianCaps]   [name:OctavianMTStd][features=default]
\stoptypescript

\starttypescript[serif][octavian][name]
\definefontsynonym  [Serif]           [OctavianRegular][features=oldstyle]
\definefontsynonym  [SerifItalic]     [OctavianItalic][features=oldstyle]
\definefontsynonym  [SerifBold]       [OctavianBold][features=oldstyle]   
\definefontsynonym  [SerifCaps]       [OctavianCaps][features=smallcaps] 
\definefontsynonym  [SerifSlanted]    [OctavianItalic][features=oldstyle]
\definefontsynonym  [SerifBoldItalic] [OctavianBoldItalic][features=oldstyle]
\definefontsynonym  [SerifBoldSlanted][OctavianBoldItalic][features=oldstyle]
\stoptypescript

\starttypescript [octavian]
  \definetypeface [octavian] [rm] [serif] [octavian] [default]
\stoptypescript

\usetypescript[octavian]
\setupbodyfont[octavian,12pt]

\setupalign [hanging,hz]

\starttext
\title{Octavian test}

I think that my Octavian font cannot use hanging and the lower case letter “a” at the same time. This is very odd.

\input dawkins

\it Let’s try it with italics. I think that my Octavian font cannot use hanging and the lower case letter “a” at the same time. This is very odd.

\input dawkins

\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-21 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1261393203.2155.ntg-context@ntg.nl>
2009-12-21 14:22 ` lower case "a" incompatible with hanging Michael Green
2009-12-17 21:38 Michael Green
2009-12-18 10:29 ` Lutz Haseloff
2009-12-19 11:57   ` Taco Hoekwater
2009-12-21  8:20     ` Lutz Haseloff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).