Prop\Type1FontData.cs
Brought to you by:
otto_mayer
Bug occurs when < 0 index bounds not checked.
I had to add lower bounds checking, to fix in a hurry.
this is my resultant working function
public Type1FontData.CharMetrics afmCharMetrics
(Int32 iUnicode) {
if (iUnicode >= aCharMetrics.Length) {
if (iUnicode == 8364) {
return aCharMetrics[128];
}
return null;
}
if (iUnicode < 0)
{
return aCharMetrics
[128];
}
return aCharMetrics[iUnicode];
}
unfortunatly i dont know the data that was fed in. but
this fixed it.