Commit Graph

187 Commits

Author SHA1 Message Date
Léa Saviot
d2b9bdd616 [unicode] Clean typography (accents, non present glyphs...) 2019-05-03 15:53:20 +02:00
Léa Saviot
b2a97cfc7a [escher] Fix buffer choice in TextField::glyphFrameAtPosition 2019-05-03 15:53:20 +02:00
Léa Saviot
7f4ef39d0c [text_area] Fix Text::Position use with unicode
A glyph offset is not equivalent to a code point offset since a code
point can be several glyphs long.
2019-05-03 15:53:19 +02:00
Léa Saviot
293517892c Remove useless comment 2019-05-03 15:53:19 +02:00
Léa Saviot
6765de4598 [apps/regression] Add X bar and Y bar 2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
90bc0dae87 [kandinsky] Comment about the CodePoints array 2019-05-03 15:53:19 +02:00
Léa Saviot
bbb10f1993 [ion/kandinsky] Move unicode to ion 2019-05-03 15:53:19 +02:00
Léa Saviot
6b6d3d7fe2 [tests] Fix unicode for tests 2019-05-03 15:53:19 +02:00
Léa Saviot
5c39cab73e [escher] Fix text inputs so they use UTF8 2019-05-03 15:53:19 +02:00
Léa Saviot
7a1fd68626 [poincare/utf8_decoder] nextCodePointPointer is now stringPosition 2019-05-03 15:53:19 +02:00
Léa Saviot
28545869be [kandinsky] Use new unicodes in fonts for Exponential, mu and i complex 2019-05-03 15:53:19 +02:00
Léa Saviot
501aa01fe7 [kandinsky] Remove obsolete calls to files 2019-05-03 15:53:19 +02:00
Léa Saviot
4bd2f6b156 [kandinsky] Fix CodePoint uint32_t cast operator 2019-05-03 15:53:19 +02:00
Léa Saviot
f304ad854f [kandinsky] Remove obsolete values 2019-05-03 15:53:19 +02:00
Léa Saviot
41afa92f10 [unicode] Use the UTF8Decoder to scan const char * 2019-05-03 15:53:19 +02:00
Léa Saviot
65e5adafac Remove Ion::Charset 2019-05-03 15:53:19 +02:00
Léa Saviot
3f56cb7041 [poincare] CodePointLayout 2019-05-03 15:53:19 +02:00
Léa Saviot
1a55c2023b [kandinsly] Rename utf8decoder as utf8_decoder 2019-05-03 15:53:19 +02:00
Léa Saviot
1928e267a9 [kandinsky] UTF8Decoder::CodePointToChars 2019-05-03 15:53:19 +02:00
Léa Saviot
c31fe3856a [kandinsky] Add KDCodePoint prefix static code points 2019-05-03 15:53:19 +02:00
Léa Saviot
50ac72107b Rename Codepoint Code point 2019-05-03 15:53:19 +02:00
Léa Saviot
c8da3bb9e7 [kandinsky/font] Add comment about UTF-8 2019-05-03 15:53:19 +02:00
Léa Saviot
1f80e63bea [kandinsky] Coding style 2019-05-03 15:53:19 +02:00
Léa Saviot
e57995712b [kandinsky/font] Fix rebase on master 2019-05-03 15:53:19 +02:00
Romain Goyet
c23e5a47bc [kandinsky] Add unit tests for UTF-8 decoding and CodepointToIndex 2019-05-03 15:53:19 +02:00
Romain Goyet
713e0f5426 [kandinsky] The rasterizer encodes Unicode codepoints 2019-05-03 15:53:18 +02:00
Romain Goyet
25456b7973 [kandinsky] Assume UTF-8 encoding for strings 2019-05-03 15:53:18 +02:00
Romain Goyet
0c83253d2e [scripts] Use BUILD_DIR instead of build_dir 2019-03-06 15:00:59 +01:00
Romain Goyet
bd6339f9dc [make] Rename OUTPUT_DIRECTORY to build_dir 2019-03-06 15:00:59 +01:00
Romain Goyet
4f1d74f44b [build] Use an out-of-tree build 2019-03-06 15:00:59 +01:00
Léa Saviot
ed19d19070 Merge branch 'master' into python_turtle 2018-12-17 15:49:46 +01:00
Léa Saviot
e836593ff9 [kandinsky] In KDContext::getPixels: beware of rects crossing the screen
This fixes a display glitch on the device, when using Python's turtle
module and doing the command forward(200).
2018-12-07 11:30:32 +01:00
Léa Saviot
2794669eb9 [kandinsky] Fix typo that bugged glyph drawing 2018-11-23 12:04:10 +01:00
Léa Saviot
8346ca606f [kandinsky] Fix Font::signedCharAsIndex 2018-11-23 12:04:10 +01:00
Léa Saviot
eda07922ab [kandinsky/font] fetchGlyphForChar handles chars that do not have glyphs 2018-11-23 12:04:10 +01:00
Romain Goyet
a9091c933b [python/turtle] Use a Turtle class 2018-11-16 15:31:31 +01:00
Jean-Baptiste Boric
464c1a5c95 [python] Initial turtle module 2018-10-27 14:24:36 +02:00
Romain Goyet
f4f567814e [escher] Compress images 2018-10-12 09:36:44 +02:00
Romain Goyet
026a20ee41 [kandinsky] Fix an off-by-one in the rasterizer 2018-10-11 16:44:02 +02:00
Romain Goyet
748f1096bd [kandinksy] Clean up the rasterizer 2018-10-11 16:44:02 +02:00
Romain Goyet
23f93703ad [kandinsky] Don't forget the last character of the range 2018-10-11 16:44:02 +02:00
Romain Goyet
dfb30e5799 [kandinsky] Remove some warnings 2018-10-11 16:44:02 +02:00
Romain Goyet
1dd1e6ca8d [kandinsky] Handle drawing clipped text
Text can be drawn in a rect that cannot contain the whole character.
Luckily, we have fillRectWithPixels handy to handle such cases.
2018-10-11 16:44:02 +02:00
Romain Goyet
aeab06513e [kandinsky] Cleanup KDFont, include all characters 2018-10-11 16:44:02 +02:00
Romain Goyet
c183f0147e [kandinsky] Get rid of KDText 2018-10-11 16:44:02 +02:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Romain Goyet
29882768bd [kandinsky] Use LZ4 to compress fonts
This is a work-in-progress
2018-10-11 16:44:02 +02:00
Romain Goyet
83662ebf70 [kandinsky] Remove warning, add missing file 2018-10-11 16:44:02 +02:00
Romain Goyet
da4cc4356f [kandinsky] Introduce a KDFont class 2018-10-11 16:44:02 +02:00