aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:36:30 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:36:30 +0100
commit72660359d44d8ab3d7029e9cb9bd37e004d0793e (patch)
tree1ba30bffb26fc46c511e468413096e3adee0c4f9
parentUpdate e-mail (diff)
downloadlibskrift-72660359d44d8ab3d7029e9cb9bd37e004d0793e.tar.gz
libskrift-72660359d44d8ab3d7029e9cb9bd37e004d0793e.tar.bz2
libskrift-72660359d44d8ab3d7029e9cb9bd37e004d0793e.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--Makefile1
-rw-r--r--algorithms/dual-alpha_blending18
2 files changed, 9 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 5e43f74..b63f558 100644
--- a/Makefile
+++ b/Makefile
@@ -93,7 +93,6 @@ install: libskrift.a libskrift.$(LIBEXT)
$(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBMINOREXT)"
ln -sf -- "libskrift.$(LIBMINOREXT)" "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBMAJOREXT)"
ln -sf -- "libskrift.$(LIBMAJOREXT)" "$(DESTDIR)$(PREFIX)/lib/libskrift.$(LIBEXT)"
- cp -- libskrift.a "$(DESTDIR)$(PREFIX)/lib"
cp -- libskrift.h "$(DESTDIR)$(PREFIX)/include"
uninstall:
diff --git a/algorithms/dual-alpha_blending b/algorithms/dual-alpha_blending
index 2c84f65..e7f3019 100644
--- a/algorithms/dual-alpha_blending
+++ b/algorithms/dual-alpha_blending
@@ -9,7 +9,7 @@ Some variable names:
A_fg = the alpha channel in the foreground
-The normal alpha blending algorithm is used render
+The normal alpha blending algorithm is used to render
a translucent object over another translucent object.
The alpha blending algorithm is:
@@ -36,17 +36,17 @@ variable O). The new alpha blending algorithm
This algorithm works as the normal alpha blending
algorithm if the opacity is used instead of alpha,
-and alpha is set to 1, on the foregrund. This
+and alpha is set to 1, on the foreground. This
algorithm is identical to the normal alpha blending
algorithm except that the opacity replaces the
foreground's alpha, and the alpha is treated as any
-other colour except all colour colours are still
+other colour except that all colours are still
premultiplied with it, since it is still an opacity.
-However, since libskrift is a text drawing library,
-which subpixel rendering support, the opacity is
-multiply with the subpixel's value in the glyph, and
-they highest subpixel's value for the alpha channel
-(since it only support surfaces with per-pixel alpha
-and not per-subpixel alpha).
+However, since libskrift is a text drawing library
+with subpixel rendering support, the opacity is
+multiplied with the subpixel's value in the glyph,
+and the highest subpixel's value is used for the
+alpha channel (since it only supports surfaces
+with per-pixel alpha and not per-subpixel alpha).