Commit Graph

30 Commits

Author SHA1 Message Date
Léa Saviot
606e132747 [apps/bench] Change LCD Data pattern (tiling red/blue/green) 2019-07-12 17:50:38 +02:00
Léa Saviot
7b99f78352 [post_and_hardware_tests] Bad pixels limit of 2, not 0 2019-07-05 12:25:45 +02:00
Léa Saviot
859064e9fb [apps/POSTandHWtest] LCD test displaying characters 2019-05-28 16:50:58 +02:00
Émilie Feral
8b926612a2 Revert "[ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder"
This reverts commit 23da0d3f2c.
2019-05-03 16:29:28 +02:00
Émilie Feral
23da0d3f2c [ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder 2019-04-29 18:01:30 +02:00
Léa Saviot
646931b3b5 [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-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53 [ion/kandinsky] Move unicode to ion 2019-04-12 15:16:51 +02:00
Léa Saviot
8d584cf37b [kandinsly] Rename utf8decoder as utf8_decoder 2019-04-12 15:16:50 +02:00
Léa Saviot
02a5d6cd23 [kandinsky] Add KDCodePoint prefix static code points 2019-04-12 15:16:50 +02:00
Léa Saviot
d5df3b74ea Rename Codepoint Code point 2019-04-12 15:16:50 +02:00
Romain Goyet
8106ba6371 [kandinsky] Assume UTF-8 encoding for strings 2019-04-12 15:16:50 +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
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
É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
Romain Goyet
cbc78460ac [kandinsky] KDContext::drawString can take a max length
Change-Id: I59cf0c1fbfb2288ab54905a4fd2558885c279814
2017-08-03 23:26:29 +02:00
Émilie Feral
7580761e8f [kandinsky] Correct bug
Change-Id: If6730dd0418c9d9d3c7428688750f47ec4c8edbe
2017-03-02 15:35:03 +01:00
Émilie Feral
b4198fc453 [kandinsky] In the rasterizer, correct constant naming
Change-Id: Ifa9ccfe293ff6934ae1c0d908c4a828ca5225728
2017-01-27 12:03:48 +01:00
Émilie Feral
9d0354f3bd [kandinsky] Add a default font size : large
Change-Id: I6b9f1a7b09292f120074c8957e328ddc33023c67
2017-01-27 12:03:06 +01:00
Émilie Feral
e6d5a8dfd1 [ion] Add a charset to associate char code to special symbols
Change-Id: I7533318185a7a66080ac68ced9b051d5e22b156d
2017-01-27 11:52:39 +01:00
Émilie Feral
804168ec76 [kandinsky] Rasterize some non-ASCII glyphs
Change-Id: I7e8ac19de72a35621a7101b3bf4686e5e7b6763e
2017-01-27 11:52:32 +01:00
Émilie Feral
f51ae5db12 [kandinsky] Introduce two fonts: small font and large font
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00
Émilie Feral
fed6664b42 [kandinsky] Correct error: clip the pixels if the rect has been clipped
Change-Id: If4230d49fbea7d7c12d79160a6d52345c570d54f
2016-12-15 13:51:40 +01:00
Émilie Feral
5212c95454 [Kandinsky] Add methods in context to blend string
Change-Id: I7d889eea4667f35cd62d6e0bcabb8b8e9861a81e
2016-12-08 15:21:52 +01:00
Romain Goyet
3e62ead069 [Kandinsky] drawChar now takes two colors
Change-Id: I0d99bb5e6c22ad582d82eae643168e6c1118f434
2016-09-15 16:34:01 +02:00
Romain Goyet
e1dcffd4ce [Kandinsky] Use fillRect instead of setPixel for text blitting
Change-Id: I8aa29abcfbd2f962d8991d24409019f4f58c627c
2016-08-19 16:58:12 +02:00
Romain Goyet
f93da3b0d8 [Kandinsky] Create a KDText class for text measurement
Change-Id: Ie3ecd402b5476f41a2f8694a276f62495fbcdbd1
2016-08-19 10:31:15 +02:00
Romain Goyet
09ac89a47c [Kandinsky] Simple black-on-white text
Change-Id: Ie6b41624912273191b7a5dd46380aebd39387f10
2016-08-12 10:22:34 +02:00
Romain Goyet
5de28e01db Migrate Kandinsky to C++
Change-Id: I2752a8db84ad0bb817119cf6c2993c1622621150
2016-07-21 13:42:32 +02:00