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://sourceforge.net/projects/librecad/files/Resources/fonts/wqy-unicode.zip/download

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 GitHub issue tracker:

https://github.com/LibreCAD/LibreCAD/issues

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.

Experimental “Offset” support in LibreCAD

I merged initial experimental support into LibreCAD yesterday.

Some basic features of Offset still need to be implemented:

1, loop, self-intersection awareness;

2, Generate a spline fit, if the offset envelop is not in simple entities(straight line, arc, and ellipse);

3, More options to initiate Offset.

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

Morley’s trisector theorem by LibreCAD’s new snap system

Morley's trisector theorem

Morley's trisector theorem

The 2.0.0 series (the master branch on github.com) of LibreCAD uses a new snap system which is designed to be more efficient in use.

For example, snap by middle points is extended to multiple equidistant points on entities. Using this new feature, trisecting an angle is now possible, albeit in LibreCAD.

To demonstrate this new interesting feature, 6 trisecting lines of a triangle are drawn, and Morley’s trisector theorem says the deep blue triangle formed is an equilateral triangle.

The LibreCAD Team

Common tangent line of two ellipses

LibreCAD tangent2

Common tangent line of ellipses

LibreCAD supports isometric grids now.

Also added to LibreCAD (targeting 2.0.0 version), drawing common tangent lines of two ellipses. Again, we use our own quartic equation solver to construct the tangent line. Actually, some cleanup still needed for the equation solver part, nonetheless, the feature is stable enough for general use.

The LibreCAD Team

Initial support for simplified Chinese fonts

LibreCAD Simplified Chinese fonts

LibreCAD Simplified Chinese fonts

After Rallaz and and zxq9 added font support for Japanese. Rallaz and I added some support for simplified Chinese fonts.

Full CJK font support is planned, but we need to figure out a more efficient way to to handle the 30,000+ characters.

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