diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-05-01 09:56:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-05-01 09:56:13 +0000 |
| commit | 76567e9ef0945c5ce86bb55097e6112a9b866948 (patch) | |
| tree | bd370d9831fbcc910fa0902e5d86a64668f6d4ba /scripts | |
| parent | grid: reflow: copy combining characters (diff) | |
render: render combining characters
This is basically just a loop that renders additional glyphs on top
off the base glyph.
Since we now need access to the row struct, for the combining
characters, the function prototype for 'render_cell()' has changed.
When rendering the combining characters we also need to deal with
broken fonts; some fonts use positive offsets (as if the combining
character was a regular character), while others use a negative
offset (to be used as if you had already advanced the pen position).
We handle both - a positive offset is rendered just like a regular
glyph. When we see a negative offset we simply add the width of a cell
first.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
