Torsten Paul
94fd976bad
Add chr() function to convert numbers to unicode characters.
2014-07-13 18:43:44 +02:00
Torsten Paul
247479ca67
Merge pull request #871 from openscad/text-fixes-3
...
Text fixes (part 3)
2014-07-12 23:01:24 +02:00
Torsten Paul
f47edd1bfe
Accept Macintosh/Roman charmap and always dump charmaps (as debug output).
2014-07-12 21:36:56 +02:00
Torsten Paul
ca51057485
Read font index from fontconfig and check result from FcPatternGet().
2014-07-12 21:36:56 +02:00
Torsten Paul
d0ba2903b3
Enable text for most test cases and update reference images.
2014-07-12 21:36:56 +02:00
Torsten Paul
2b37c39861
Add filter for font table.
2014-07-12 21:36:56 +02:00
Torsten Paul
f01afd7252
Add paste button to font list dialog.
2014-07-12 21:36:56 +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
Torsten Paul
d8c325846d
Enable IRC notification for travis builds.
2014-07-08 00:46:59 +02:00
Torsten Paul
444ae5d705
Fix FreeType include handling.
2014-07-08 00:44:16 +02:00
Marius Kintel
8a2734da40
Merge pull request #868 from openscad/text-fixes2
...
Text fixes (part 2)
2014-07-08 00:30:12 +02:00
Torsten Paul
e8fac2ef97
Add example files for text() usage.
...
The test case images are currently not including the text as the example
test run does not include experimental features. This will need to be
updated once the text() feature is not experimental anymore.
2014-07-07 23:28:03 +02:00
Torsten Paul
0a5acbde25
Add test cases for composition and symbol font handling.
2014-07-07 23:28:03 +02:00
Torsten Paul
d413e4695b
Use special handling for Windows/Symbol charmap only with charcodes >= 0xf000.
...
Some fonts with symbol encoding still have the charcodes in the ASCII
area instead of Unicode page 0xf000. To make those work too, the special
handling is only enabled in case the first charcode is >= 0xf000.
2014-07-07 23:28:03 +02:00
Torsten Paul
f29d10a49f
Select charmap when loading fonts and add workaround for windows symbol fonts.
2014-07-07 23:28:03 +02:00
Marius Kintel
c47ba7c8ba
Merge pull request #865 from openscad/feature/cam_center
...
Camera handling: Double click on a point of an object to set the camera center
2014-07-07 23:12:38 +02:00
Marius Kintel
b9f20780a8
Merge pull request #866 from openscad/text-fixes
...
Text fixes
2014-07-06 19:43:33 +02:00
Torsten Paul
90ef6c95a3
Fix render issue with combining chars intersecting with the base char.
...
Example: text("A\u030A", font = "Arial");
The fix relies on the winding order of the polygons reported by FreeType
to be correct, so the Clipper union operation keeps that information.
2014-07-06 18:41:41 +02:00
Oskar Linde
b257891391
Camera handling: Double click on a point of an object to set the camera center
2014-07-06 07:40:46 +02:00
Torsten Paul
ea21e0fbd5
Show font path in Library Info window.
2014-07-06 04:28:16 +02:00
Torsten Paul
f820727fe8
Remove unused path lookup and move OPENSCAD_FONT_PATH to fontconfig.
2014-07-06 03:57:25 +02:00
Torsten Paul
29b22c49fe
Add /Library/Fonts for MacOS.
2014-07-06 03:37:54 +02:00
Torsten Paul
ffeae16728
Set default font and add loading of additional fontconfig config file.
2014-07-06 03:24:46 +02:00
Torsten Paul
cac3de5461
Use const for std::string arguments.
2014-07-05 23:54:19 +02:00
Marius Kintel
57c52e9351
Merge pull request #864 from openscad/bugfix/cmd_save
...
Bugfix: Cmd-S on an unmodified document inserted an 's'
2014-07-05 22:45:26 +02:00
Oskar Linde
f9ac5053a1
Bugfix: Cmd-S on an unmodified document inserted an 's'
2014-07-05 22:13:51 +02:00
Marius Kintel
9fdc44b00f
Merge branch 'master' of github.com:openscad/openscad
2014-06-26 19:42:20 -04:00
Torsten Paul
bc17acf8fe
Fix handling of multi-line comments.
...
If not eaten by the lexer, the comment content will be dumped to stdout
as default action.
2014-06-26 23:05:05 +02:00
Marius Kintel
328fbb9000
Allow slices to be specified independently of twist. Fixes #850
2014-06-26 16:43:12 -04:00
Marius Kintel
4bed4902e9
Bugfix: Zoom was broken for orthographic cameras. Fixes #853
2014-06-26 15:34:15 -04:00
Marius Kintel
7e5ad73c66
Removed unused code
2014-06-26 15:33:40 -04:00
Marius Kintel
0a566b3d83
Removed unused code
2014-06-26 15:33:22 -04:00
Marius Kintel
1085d3507a
Set fixed point to 2^16
2014-06-26 15:32:52 -04:00
Marius Kintel
f108798c00
Output debug info only in debug mode
2014-06-26 15:31:22 -04:00
Marius Kintel
705b913c18
Use transparency from color name. Fixes #852
2014-06-26 11:36:02 -04:00
Marius Kintel
8733b875f2
Output debug info only in debug mode
2014-06-25 23:54:10 -04:00
Marius Kintel
446c569703
Forgot some files for the #837 testcase
2014-06-25 23:37:18 -04:00
Marius Kintel
d9fda460cc
Popped path_stack once too many. Should fix #837
2014-06-24 19:23:06 -04:00
Marius Kintel
c8b4d82d96
Added testcase for #837
2014-06-24 19:22:33 -04:00
Marius Kintel
b81ab0530d
Output debug info only in debug mode
2014-06-24 19:22:15 -04:00
Marius Kintel
ccb9495354
Merge branch 'master' into text-escape-sequences
...
Conflicts:
tests/CMakeLists.txt
2014-06-24 18:32:14 -04:00
Torsten Paul
544de72c80
Add test cases for the escape sequences.
2014-06-24 20:09:04 +02:00
Torsten Paul
581928a8fd
Fix no-break space handling.
2014-06-24 19:17:50 +02:00
Marius Kintel
bbdfe9b706
Make concat() a primary feature (not experimental)
2014-06-23 22:42:11 -04:00
Torsten Paul
d46b8a8465
Handle UTF-8 multi-byte characters in the lexer.
2014-06-23 23:21:16 +02:00
Torsten Paul
1a2fcc0559
Add support for \x \u and \U escape sequences.
...
For all escape sequences the 0 byte is illegal and converted to a space.
\x supports only the range from 0x01 to 0x7F as the values greater or
equal to 0x80 could produce illegal UTF-8 sequences.
\u allows to specify unicode codepoints with exactly 4 hex digits.
\U allows to specify unicode codepoints with exactly 6 hex digits.
2014-06-23 23:21:16 +02:00
Torsten Paul
62aebbbb37
Add encoding of \r.
2014-06-23 23:21:16 +02:00
Torsten Paul
86e87e45f9
Use toString() when generating echo() messages ( fixes #838 ).
...
When using the Value << operator, strings are encoded (e.g. a newline
character is encoded as \n), but echo() should output the text as given.
2014-06-23 23:21:16 +02:00
Oskar Linde
681f03a2a7
Resolve #835
2014-06-23 10:15:39 +02:00
Oskar Linde
38c7a24240
Add test case for issue 835
2014-06-23 10:15:39 +02:00