the "scale" and "transformation" values

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
Philipp
Posts: 18
Joined: Mon Jan 03, 2022 12:04 am

the "scale" and "transformation" values

Post by Philipp »

It's not entirely clear how the "scale" and "transformation" values are formed. For example, if I need to rotate a rectangle for 30° without distorting its angles and dimensions. By what formula should these quantities be calculated?
Attachments
SS.PNG
SS.PNG (69.43 KiB) Viewed 2476 times
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9890
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: the "scale" and "transformation" values

Post by Bhikkhu Pesala »

The values are trigonometric: try -0.5773 and 0.5773 (tan of 30°)
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Philipp
Posts: 18
Joined: Mon Jan 03, 2022 12:04 am

Re: the "scale" and "transformation" values

Post by Philipp »

 Thanks for the reply. However, I guessed that these are trigonometric functions. In this case, it's sin. But in order for the dimensions of the rectangle to be preserved, compensation for the "scale" values is necessary. I can't figure it out.
 Can you tell us the principle of the formula by which transformations occur by changes in these quantities?
Attachments
SS.PNG
SS.PNG (49.92 KiB) Viewed 2466 times
Philipp
Posts: 18
Joined: Mon Jan 03, 2022 12:04 am

Re: the "scale" and "transformation" values

Post by Philipp »

 Is my question clear enough? Maybe it should be rephrased and clarified? Or do you just not fully understand this mechanism of transformation either?
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9890
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: the "scale" and "transformation" values

Post by Bhikkhu Pesala »

The help file does not elaborate. You will have to figure it out for yourself. Maybe this illustration will help you. It looks like the transformations skew the glyph in the x and y directions.
Glyph Transformations.png
Glyph Transformations.png (95.21 KiB) Viewed 2430 times
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Philipp
Posts: 18
Joined: Mon Jan 03, 2022 12:04 am

Re: the "scale" and "transformation" values

Post by Philipp »

 Thank you, Bhikkhu Pesala, for Your work and illustration. I noticed this pattern. However, the essence of the question was to establish such a mathematical regularity in which a given figure retained not only its shape, but also its original dimensions. So in my drawing, the rectangle turned 30°.
SS.PNG
SS.PNG (49.92 KiB) Viewed 2430 times
However, its length and width have changed. By changing the values of the "Scale X" "Scale Y" counters, you can achieve this manually, by selection method. However, this is not serious.
 So, for example, if there is a problem to rotate a triangle, the selection method will be very difficult. And if you need to rotate a triangle that is also scaled, it will be almost impossible to achieve this manually, by selection method.
 Therefore, the question is to describe a mathematical function, a formula, so as not to waste time on stupid inaccurate selection manually.
 And yes, experiments show that in this case this dependence is not a tangent, but a sinus.
Philipp
Posts: 18
Joined: Mon Jan 03, 2022 12:04 am

Re: the "scale" and "transformation" values

Post by Philipp »

 Hurrah! Remembered! This is the matrix of rotation of the vector on the plane. https://en.wikipedia.org/wiki/Rotation_matrix
SS.PNG
SS.PNG (99.25 KiB) Viewed 2426 times

 Now the triangle can be easily rotated without distortion. For example, an equilateral triangle rotates 60°.
SS+.PNG
SS+.PNG (69.82 KiB) Viewed 2426 times
Post Reply