|
|
> Hey, I just thought of what is probably happening. Because of kerning,
> POV-Ray is moving the "o" towards the "Y", but is not moving the "u" as
> well. If this is the case, it should definately be fixed.
And the patch is simple. In TRUETYPE.C, change these lines:
/* Shift next glyph by the width of this one */
total_offset[X] += ffile->hmtx_table[glyph->myMetrics].advanceWidth *
funit_size;
to:
/* Shift next glyph by the width of this one + any kerning amount */
total_offset[X] += (ffile->hmtx_table[glyph->myMetrics].advanceWidth +
kern_value_x) * funit_size;
I tested this with the POV-Ray 3.1 source, and it seems to work properly.
Post a reply to this message
|
|