Complete CJK font support in LibreCAD

Some simple hack to allow using CJK(Chinese-Japanese-Korean) font support.

Since the file size of complete CJK fonts is almost 80MB, I only added a 7-zipped font file to the folder: support/fonts :

https://github.com/LibreCAD/LibreCAD/blob/master/support/fonts/wqy-cjk.lff.7z

To use this font file, you will have to unzip it to generate the wqy-cjk.lff file. To unzip it in Linux:

7z e path/to/wqy-cjk.lff.7z

and add the file to LibreCAD font folder. For example, in my Archlinux,

sudo cp path/to/wqy-cjk.lff to /usr/share/librecad/fonts/

The font handling efficiency still needs more work. Nonetheless, users should be able to use CJK fonts in LibreCAD from now on. We would like to thank the WenQuanYi project for the good font quality and support for free software.

If you find a bug in LibreCAD, or simply want LibreCAD to do more, please file a feature request/bug report at our sourceforge trackers:

https://sourceforge.net/tracker/?group_id=342582

The LibreCAD team

 

PS: The font file is renamed to wqy-unicode, because it covers more than CJK fonts. The font file size is reduced from 80MB to 42MB, and it takes 120MB RAM to load wqy-unicode font file.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>