mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-16 08:21:20 -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
c291194a4e
commit
ade745f303
4 changed files with 599 additions and 19 deletions
1
config.h
1
config.h
|
|
@ -423,6 +423,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