Commit Graph

14 Commits (9f372cff412ef7fbddcb4ca897f1dce700228724)

Author SHA1 Message Date
Torsten Paul 9f372cff41 Simple detection of script and direction based on given text.
This adds a simple detection logic based on the hb_unicode_script()
function provided by harfbuzz. Automatic script selection will only
happen if no valid parameter was given (basically only in case of
a missing script parameter in text()).
If different scripts are found in a single text, the resulting value
is HB_SCRIPT_UNKNOWN.
2015-05-09 18:05:07 +02:00
Marius Kintel 6492d25265 #1065 The text module is no longer experimental 2014-12-17 12:56:52 -05:00
Marius Kintel 4cd712d24d Merge remote-tracking branch 'origin/master' into stack-size-hack
Conflicts:
	src/context.h
	src/control.cc
	src/evalcontext.h
	src/localscope.cc
	src/module.cc
2014-11-25 11:25:37 -05:00
Marius Kintel 406e6e1bac #409 Pass Value objects as shared_ptr instances instead of by Value to battle excess stack usage 2014-11-23 00:59:17 -05:00
Marius Kintel ea1d561c46 Support variable assignment in local blocks. This should fix #347 but more testing is needed 2014-11-17 00:57:36 -05:00
Torsten Paul c0c4fdf527 Handle $fn, $fa and $fs for CSG output. 2014-08-03 20:31:03 +02:00
Torsten Paul a4b9bb554d Lower number of segments generated for bezier path. 2014-08-03 20:31:03 +02:00
Torsten Paul b920352f98 Save original $fn value for CSG output. 2014-08-03 20:31:03 +02:00
Torsten Paul d86e9d43ee Fix text() CSG output and cleanup test cases.
- enable text feature in import-export test cases
- drop ParaType font as Liberation is needed for the composition regression
  test, so use this for other tests too
- drop Amiri bold font, which is not adding anything to coverage
2014-07-12 21:36:50 +02:00
Marius Kintel f9b3d357ff build fix after merging text and the new master 2014-04-26 22:09:15 -04:00
Torsten Paul 6c84515275 Add positional parameters for text().
Positional parameters are t, size, font.

Example: text("OpenSCAD", 30, "Liberation Mono");
2014-02-04 19:10:16 +01:00
Marius Kintel 3f42b8c6cb adapted text-module branch to refactored branch
Conflicts:
	src/GeometryEvaluator.cc
	src/GeometryEvaluator.h
	src/clipper-utils.h
	tests/CMakeLists.txt
2014-02-02 18:41:59 -05:00
Torsten Paul b5b0fe2674 Add text() module to the experimental feature list. 2014-02-02 18:01:09 -05:00
Torsten Paul bb45e7e52a Add implementation of text() module. 2014-02-02 18:00:44 -05:00