Skip to content

Conversation

@0880880
Copy link

@0880880 0880880 commented Jan 15, 2025

This pull request adds FT_Set_Transform, FT_Get_Transform, and FT_Glyph_Transform to the FreeType class and adds an Affine transformation in FreeTypeFontParameter that can be used for transformations like font stretch and slant:

FreeTypeFontGenerator.FreeTypeFontParameter fontParameter = new FreeTypeFontGenerator.FreeTypeFontParameter();
[...]
fontParameter.transform.shear(MathUtils.tan(slantAngle),0);
fontParameter.transform.scale(1.5,1); // 150% stretch 

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant