vagran / dxf-viewer

DXF 2D viewer written in JavaScript
Mozilla Public License 2.0
310 stars 97 forks source link

Text display #17

Closed Wanik999 closed 1 year ago

Wanik999 commented 1 year ago

Hello, now I have a question, how to convert the font in dxf into Chinese. image

vagran commented 1 year ago

Hello, This is one of incomplete features mentioned in the readme. Need to process some special sequences and unicode escapes in strings. Actually, if a file is saved in UTF-8 encoding, these escapes are not needed and text can be specified directly and it can be now properly displayed. I will try to revise this feature in several days. It would be nice to have some example file for development and testing purposes.

vagran commented 1 year ago

Fixed in v1.0.19. Note, that you still need proper fonts specified to render corresponding unicode glyphs.