mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-30 21:38:03 -04:00
Add font ligature rendering support
Add tweak.ligatures option (default: no) for OpenType liga/calt rendering with programming fonts. Ligatures are render-only — the grid and copy/paste are unchanged. Uses fcft_rasterize_shaped_run() to shape full runs with HarfBuzz and render each glyph by its shaped glyph ID, correctly handling contextual alternates and ligatures. Block cursor over a ligature uses a pixman gradient as composite source for single-pass correct-color rendering.
This commit is contained in:
parent
f35e60577f
commit
4858b3db7b
4 changed files with 603 additions and 19 deletions
1
config.h
1
config.h
|
|
@ -438,6 +438,7 @@ struct config {
|
|||
enum fcft_scaling_filter fcft_filter;
|
||||
bool overflowing_glyphs;
|
||||
bool grapheme_shaping;
|
||||
bool ligatures;
|
||||
enum {
|
||||
GRAPHEME_WIDTH_WCSWIDTH,
|
||||
GRAPHEME_WIDTH_DOUBLE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue