Commit Graph

156 Commits

Author SHA1 Message Date
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
Émilie Feral
eebb405cd5 [kandinsky] Add the degree symbol to Charset 2018-09-25 15:13:31 +02:00
Émilie Feral
a1bcbe28e6 [quiz] Turn all assert in quiz_assert 2018-08-28 10:40:52 +02:00
Émilie Feral
b4e3143e76 [Kandinsky] Regular font: new capital delta 2018-06-12 16:27:01 +02:00
Émilie Feral
f992253cec [ion] Add a special char: CapitalDelta 2018-06-07 13:46:18 +02:00
Tillmann Karras
6d2c3dce25 [kandinsky] use pkg-config instead of freetype-config
Since freetype2 version 2.9.1 freetype-config has been deprecated and is
not installed by default anymore:
https://sourceforge.net/projects/freetype/files/freetype2/2.9.1/
2018-06-04 15:44:59 +02:00
Léa Saviot
96c24b1d63 [kandinsky] Simplify code of Kandinsky tests
Change-Id: Ib5c716a5c8ed8d1ef8849475f8bc71076f91c6bc
2018-04-25 13:58:43 +02:00
Léa Saviot
2aa9b6947e [kandinsky] Add test cases for KDRect::differencedWith
Change-Id: I27371f94e590cb75712154b47efe4db27d0a082d
2018-04-25 13:58:43 +02:00
Léa Saviot
34d6028882 [kandinsky] Add method KDRect::differencedWith(const KDRect & other)
Change-Id: Ib6c61bbd3bffc90bc3e704a7133eae0731500864
2018-04-25 13:58:43 +02:00
Léa Saviot
c4b5d4cf40 Merge branch 'SaisieJolieRebase1201' into SaisieJolieMerge10Apr
Change-Id: I802dbb9f7c0eebf75a1b6cd21ddd194e89b53752
2018-04-10 17:21:54 +02:00
Romain Goyet
489b26e813 Re-organize and re-prefix the Makefile variables 2018-02-02 14:30:35 +01:00
Léa Saviot
fc8cd6c06e [expression_editor/poincare] Move Up in an ExpressionLayout.
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
2018-01-15 11:58:01 +01:00
Émilie Feral
887e3d1f54 [kandinksy] Optimize strokeRect implementation 2018-01-04 15:48:06 +01:00
Émilie Feral
57866ce788 [kandinsky] Make charSize methods constexpr 2018-01-04 15:48:06 +01:00
Émilie Feral
66e375a308 Makefile: all objects .o depend on generated headers (to avoid tracking
all dependencies before compiling)
2018-01-04 15:48:06 +01:00
Émilie Feral
c545a23ec6 [kandinsky] Fix draw rect+change name: drawRect->strokeRect
Change-Id: I1c59e34b126aa54819e399d095499758b9e73125
2017-12-06 14:49:53 +01:00
Émilie Feral
8cfeff5fbe [kandinsky] Change Large police
Change-Id: Ic3063610eaf2ed73aa7e0e6f7edcb5ad3946ac22
2017-12-01 11:53:59 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Émilie Feral
5fd8fda4b1 [calculation] Display exact and approximate results
Change-Id: Id5fe5b5db464c45f09bd1a1285def95e738a78c7
2017-11-21 17:37:25 +01:00
Émilie Feral
e3057d5c2b [poincare] Change multiplication sign
Change-Id: If58f62fa181ce7aac441d42d44ea65d68f0d6421
2017-10-25 18:19:01 +02:00
Jacob Young
17ac54cad5 Use cmath in c++ files. 2017-10-13 18:08:15 +02:00
Adrien Bertrand
344bcac843 [kandisky] Generated font-related source data should be const.
This saves up to 30 KB in RAM, as it's not in the same section anymore.
2017-09-28 17:57:26 +02:00
Émilie Feral
133653c7e0 [kandinsky] Change name to avoid confusion: blend ->
transparentBackground

Change-Id: I90327e71699e5ec4b349544e537e04327ec2bd7c
2017-08-28 11:51:17 +02:00
Émilie Feral
3184bc2276 [kandinsky] Enable to draw string with \n or \t characters
Change-Id: I66a1953dd1eb00d7f397b32a69edb56a1d83f4ac
2017-08-25 11:20:48 +02:00
Émilie Feral
6054f02373 [kandinsky] In KDRect, right and bottom Points are included in the rect
Change-Id: I36fd049a808d9ab2e6cb0de5b366a9645a403ef1
2017-08-17 16:21:22 +02:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Romain Goyet
614b623a2b [kandinsky] KDRect::topLeft and bottomRight
Change-Id: I47e726cea81ea5bfb29409c5679c47dc1aae8f13
2017-08-04 17:26:15 +02:00
Romain Goyet
cbc78460ac [kandinsky] KDContext::drawString can take a max length
Change-Id: I59cf0c1fbfb2288ab54905a4fd2558885c279814
2017-08-03 23:26:29 +02:00
Romain Goyet
0a6e223230 [kandinsky] Inline KDColor::red, green and blue
Change-Id: Ief45fa20155c5857be36e2acd7351dfdf71639cb
2017-07-21 14:00:50 +02:00
Émilie Feral
54d985b676 [kandinsky/test] Repare test on rect union
Change-Id: Ie78bc2a42442ea4b1e36d85034181723a5d08c2d
2017-06-27 14:34:10 +02:00
Émilie Feral
d33a83ae8c [kandinsky] Improve Large Font: change M
Change-Id: I4c4ec71b4e7ce2f4c2a110ea2194a3638f0a39d3
2017-06-14 17:42:26 +02:00
Émilie Feral
b9e52978ba [kandinsky] Avoid weird blinking in sequence term sum due to wrong rect
union

Change-Id: Ib873f272be4404678e99c5163138ddfd890d4707
2017-06-08 18:30:47 +02:00