Skip to content

Conversation

@eXponenta
Copy link
Contributor

@eXponenta eXponenta commented Nov 26, 2025

in some DWGs (and then DXFs after ODA transform ) MTEXT include width pattern as \W.85; instead of \W0.85;

Снимок экрана 2025-11-26 в 14 36 44 (See the attached file.)

And this text will present then in text content.

Before:
Снимок экрана 2025-11-26 в 14 45 46

After:
Снимок экрана 2025-11-26 в 14 47 56

file:
mtext_invalid_char_width.dxf 2.zip

in some cases width present as \W.85; instead of \W0.85;
@eXponenta eXponenta marked this pull request as draft November 26, 2025 11:51
@eXponenta
Copy link
Contributor Author

eXponenta commented Nov 26, 2025

Now we got problem with test, because it think that .{d} is invalid instruction, when for cad it is ok.

{\fISOCPEUR|b0|i0|c0|p34;\Q.0;1\H.5x;2\H4.0x;\W.5;3\H.25x;\W1;4\H2.x;5}

is valid pattern.
see:
mtext_complex_test.dxf.zip

@eXponenta eXponenta changed the title fix: valid float parsing when pattern not include leading 0 fix: valid float parsing when pattern not include leading number before . ( .231 ) Nov 26, 2025
@eXponenta eXponenta marked this pull request as ready for review November 26, 2025 12:31
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