Commit Graph

43 Commits

Author SHA1 Message Date
Nils Dagsson Moskopp a171847d78
* Added Emoji characters to “screenshot” image 2023-09-11 14:27:44 +02:00
Nils Dagsson Moskopp f143894e55
+ Add script to generate a ”screenshot” for Minetest ContentDB 2023-09-10 17:49:52 +02:00
Nils Dagsson Moskopp 27f4fe7814
+ Add LICENSE.txt with AGPL Version 3 2023-09-09 19:46:55 +02:00
Nils Dagsson Moskopp 9ff46a730b
* Fix examples in README 2023-09-05 00:27:54 +02:00
Nils Dagsson Moskopp 62068c8368
* Localize variables 2023-09-04 20:26:37 +02:00
Nils Dagsson Moskopp b3bb944d2d
+ Make the code work inside and outside of Minetest 2023-09-04 20:13:20 +02:00
Nils Dagsson Moskopp 7bf03de2ec
* Load unifont.hex from local directory 2023-09-04 19:18:38 +02:00
Nils Dagsson Moskopp 319bcf2c1f
- Remove unifont_upper.hex (users must provide their own font) 2023-09-04 19:15:29 +02:00
Nils Dagsson Moskopp 98e9caaec5
+ Expose utf8 functionality as unicode_text.utf8 2023-09-04 19:13:51 +02:00
Nils Dagsson Moskopp f7e4aa738c
* Localize codepoint variable 2023-09-04 19:11:05 +02:00
Nils Dagsson Moskopp 7d36959d1e
+ Add error message for wrong argument type given to hexfont.load_glyphs() 2023-09-04 19:07:23 +02:00
Nils Dagsson Moskopp 4a08715628
* In examples, load tga_encoder from sibling directory 2023-09-04 18:48:24 +02:00
Nils Dagsson Moskopp 78a13f7490
+ Modify test for bidi rule W2 so it passes 2023-09-02 15:20:42 +02:00
Nils Dagsson Moskopp d7ebaec797 * Refactor tests for bidi rules W2, W3, W4 2023-03-26 21:29:32 +02:00
Nils Dagsson Moskopp 732b063dcd + Add tests for bidi rule W4 2023-03-26 20:46:38 +02:00
Nils Dagsson Moskopp fb971deccf + Add tests for bidi rule W3 2023-03-26 20:42:55 +02:00
Nils Dagsson Moskopp 58bc44bc7c + Add tests for bidi rule W2 2023-03-26 20:41:52 +02:00
Nils Dagsson Moskopp 4d8bea08fd * Refactor bidi.lua (resolving weak types) 2023-03-22 18:22:17 +01:00
Nils Dagsson Moskopp 82d04cee6f + Add more example texts 2023-03-22 03:44:11 +01:00
Nils Dagsson Moskopp 792276cbb5 * Reorder example text 2023-03-22 03:15:33 +01:00
Nils Dagsson Moskopp 759a7d008f + Add rudimentary bidirectional rendering support 2023-03-22 02:59:44 +01:00
Nils Dagsson Moskopp 9b984e0d2f * Refactor newline handling to handle CR, NEL, PSEP 2023-03-21 17:24:44 +01:00
Nils Dagsson Moskopp 6bd77156c8 + Use Unicode character properties to identify combining marks 2023-03-21 00:31:19 +01:00
Nils Dagsson Moskopp 7402f7b2ef + Add link to R hexfont package 2023-03-20 17:55:09 +01:00
Nils Dagsson Moskopp 906dab76c6 + Add some more Unicode text to test.lua 2023-03-20 00:53:52 +01:00
Nils Dagsson Moskopp eca23daa85 + Add examples to README 2023-03-20 00:50:08 +01:00
Nils Dagsson Moskopp efd3817f46 + Add README 2023-03-20 00:21:55 +01:00
Nils Dagsson Moskopp 4f70014e12 + Add and modify rendering tests 2023-03-19 00:42:05 +01:00
Nils Dagsson Moskopp d1c5af790a * Speed up scanline order inversion 2023-03-18 23:45:23 +01:00
Nils Dagsson Moskopp b9c3da3ca6 * Clarify uselessness of enumeration variable 2023-03-18 23:34:47 +01:00
Nils Dagsson Moskopp 4c771268f7 * Speed up scanline padding further 2023-03-18 23:26:39 +01:00
Nils Dagsson Moskopp 03236290e8 * Speed up scanline padding 2023-03-18 23:16:07 +01:00
Nils Dagsson Moskopp 3d59899f78 * Move font-rendering properties to hexfont class 2023-03-18 22:33:42 +01:00
Nils Dagsson Moskopp 25ea8cb779 - Remove dead code 2023-03-18 20:36:33 +01:00
Nils Dagsson Moskopp 42b985cb3d * Rename pixelops.flip_vertical → pixelops.flip_vertically 2023-03-18 20:11:56 +01:00
Nils Dagsson Moskopp 54e70dd45f * Rename pixelops.pad_right → pixelops.right_pad 2023-03-18 20:08:25 +01:00
Nils Dagsson Moskopp 7376c3e7b7 * Rewrite everything 2023-03-17 03:39:41 +01:00
Nils Dagsson Moskopp fbc7ddaa5f * Update Unicode replacement character 2023-03-15 19:19:09 +01:00
Nils Dagsson Moskopp ace64653aa + Add more example code 2023-03-15 17:29:00 +01:00
Nils Dagsson Moskopp 2dc003a775 * Refactor codepoint handling
Codepoints are now numbers, not strings with hex digits.
2023-03-15 17:19:02 +01:00
Nils Dagsson Moskopp 57cb99292b * Rename load_hex_font() to load_font_file() 2023-03-15 16:58:31 +01:00
Nils Dagsson Moskopp 8fa8382408 * Rename render_utf8_text() to render_text()
This patch also un-exposes render_utf8_line().
2023-03-15 16:56:36 +01:00
Nils Dagsson Moskopp 3c92804ebb Initial import 2023-03-14 02:08:24 +01:00