Commit Graph

2 Commits

Author SHA1 Message Date
George Sokianos c155f797cf First commit of compilable code for OS4 2021-12-21 17:52:44 +00:00
Francesco Abbate 3b040aabc7 Implement unicode character replacements
Useful to draw whitespaces with alternate characters and colors
without slowing down the text rendering.

A new API is implemented. A renderer.replacements object can be created
to list the replacements.

In turns the function renderer.draw_text and draw_text_subpixel now accept
two optional arguments for replacements.
2021-04-01 18:05:59 +02:00