Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

render Mtext #95

Open
1207702931 opened this issue Mar 11, 2022 · 4 comments
Open

render Mtext #95

1207702931 opened this issue Mar 11, 2022 · 4 comments

Comments

@1207702931
Copy link

1207702931 commented Mar 11, 2022

There are a lot of MTEXT and TEXT content in my file that need to be rendered, what should I do?

@z3dev
Copy link

z3dev commented Mar 11, 2022

@1207702931 probably the best choice would be use ADOBE products.

Text rendering requires FONTs, and rendering engines.

@KamyarTaher
Copy link

Hello,
I need to render text also. I saw that the data returned by the helper gives also Text data like this:
colorNumber : 7 layer : "1" rotation : 90 string : " 1300.0 " textHeight : 33.7143 type : "TEXT" x : -33.7143 y : 515.14282

Couldn't I simply render and add each text as SVG text? I don't understand what the limitations would be. Could you enlighten me a little more? (knowing that I don't need custom fonts)

@gabriel-peruchi
Copy link

Hello, I need to render text also. I saw that the data returned by the helper gives also Text data like this: colorNumber : 7 layer : "1" rotation : 90 string : " 1300.0 " textHeight : 33.7143 type : "TEXT" x : -33.7143 y : 515.14282

Couldn't I simply render and add each text as SVG text? I don't understand what the limitations would be. Could you enlighten me a little more? (knowing that I don't need custom fonts)

I have the same problem, did you manage to solve it?

@KamyarTaher
Copy link

Hello!

Sorry for the late response, I managed to get the text but I didn't need it anymore, so I didn't continue the development, so the code is not clean at all.
Anyway if this can help you, here is my fork. I modified the code in this file to allow the text.
https://github.com/KamyarTaher/dxfWText/blob/develop/src/toSVG.js

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

No branches or pull requests

4 participants