diff options
author | Mattias Andrée <maandree@kth.se> | 2020-04-28 16:39:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-04-28 16:39:34 +0200 |
commit | de7081c730426821d0e59d57f35d91b112a80961 (patch) | |
tree | 9d7ff6e961fa55842e03c92d5204a6695485f1b4 /config.mk | |
parent | Faster glyph merging when not using smoothing (diff) | |
download | libskrift-de7081c730426821d0e59d57f35d91b112a80961.tar.gz libskrift-de7081c730426821d0e59d57f35d91b112a80961.tar.bz2 libskrift-de7081c730426821d0e59d57f35d91b112a80961.tar.xz |
Add code (untested) for applying glyphs to an image
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,7 +3,12 @@ MANPREFIX = $(PREFIX)/share/man DEMO_FONT = /usr/share/fonts/liberation/LiberationSans-Regular.ttf -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE '-DDEMO_FONT="$(DEMO_FONT)"' +MERGE_STYLE = MAX +# MAX: The max value of the glyph (minimum legal result, insignificantly slower than SUM) +# OR: The bitwise OR of the glyph values (within legal range, fastest) +# SUM: The saturated sum of the glyph values (maximum legal result) + +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D$(MERGE_STYLE)_MERGE '-DDEMO_FONT="$(DEMO_FONT)"' CFLAGS = -std=c99 -Wall -g LDFLAGS = -lschrift -lm -lgrapheme |