Hello,
Is it possible to put a "scale" on a font ?
Finally, that's what I want to control :
(Embedded image moved to file: pic17090.pcx)
I tried this : (getEchelle() returns a percentage)
BaseFont bf = BaseFont.createFont(feuilleDeStyle.getPolice(),
BaseFont.WINANSI, BaseFont.EMBEDDED);
Font font = new Font(bf, feuilleDeStyle.getCorps(),
feuilleDeStyle.getStyle(), Color.BLACK);
if (feuilleDeStyle.getEchelle() != 1)
{
int widths[] = bf.getWidths();
for (int k = 0; k < widths.length; ++k)
{
widths[k] *= (feuilleDeStyle.getEchelle());
}
bf.setForceWidthsOutput(true);
}
return font;
but this only change the space between the origin of two consecutive
character, and I'd like to force also the character to be "scaled", the
changes seem to be applied on each font I create after even if its scale
equals 1.0 ....
Thanks.
Pierre
><//�>
pic17090.pcx
Description: Binary data
