2.2.1_rc and 2.2.2_alpha are ready to test

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.1_rc and 2.2.2_alpha are ready to test

dxli
Appears to be font issue. It could be the font data or the font implementation.

I did some troubleshooting, the Text implementation is simply sending scaling factors to the font entities, so unlikely be causing this bug.

If different scaling factors are used for x- and y- directions, the scaled letters are messed up.
usuario wrote
I'm using a translator.

Yes, it works much better, thank you.

While it is being improved, could the Text tool be temporarily removed?

Thank you for your work on LibreCAD.

Best regards.
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.1_rc and 2.2.2_alpha are ready to test

dxli
This post was updated on .
In reply to this post by usuario
The problem is using arcs in fonts.

The current LFF fonts contain polylines, and a polyline by definition may contain arcs but not elliptic arcs.

The width factor of Text may scale the font differently in x-/y-directions, if the factor is not 1. That means any arcs will be scaled into elliptic arcs. However, the polylines can only be scaled as arcs, leading to inconsistent shapes.

Workaround: if you do need to scale fonts wider, explode the text and scale the entities.

Or, try to use a font which doesn't contain arcs (if you read the lff file for the character, to avoid arcs, the font data should not contain any coordinate starting with the letter 'A', like 'A1'. For example , the standard.lff for the letter [0042] 'B' contains arcs in fonts😭

usuario wrote
I'm using a translator.

Hello,

Thanks for your work in LibreCAD, the link shows erratic behavior of the Text tool of the Dimension dockwidget.

https://youtu.be/oGRxh51QI9s

LibreCAD is great software!

Version: 2.2.1_rc2-8-g0649fad1
Compiler: GNU GCC 12.2.0
Compiled on: May 31 2024
Qt Version: 5.15.2
Boost Version: 1.75.0
System: Windows 10 Version 2009

Similar behavior is found in version 2.2.2 alpha.

Best regards.
Reply | Threaded
Open this post in threaded view
|

Re: 2.2.1_rc and 2.2.2_alpha are ready to test

usuario
* I am using a translator.

Hello,

Thanks for checking the behavior with the fonts, for now I was able to solve it using the MText option, when required I will try the solution proposed here.

I hope you can continue contributing your knowledge to LibreCAD.

Best regards.
12