From aba2063c22629308fac59bf91e3b4c9a8eaa2fa1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 24 Dec 2022 10:15:47 -0700 Subject: [PATCH] [paint-extents] Comments --- src/hb-paint-extents.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/hb-paint-extents.hh b/src/hb-paint-extents.hh index fe98a3332..b80d8e26c 100644 --- a/src/hb-paint-extents.hh +++ b/src/hb-paint-extents.hh @@ -29,6 +29,12 @@ #include "hb-paint.hh" #include "hb-draw.h" +/* + * This file implements bounds-extraction as well as boundedness + * computation of COLRv1 fonts as described in: + * + * https://learn.microsoft.com/en-us/typography/opentype/spec/colr#glyph-metrics-and-boundedness + */ typedef struct hb_extents_t { @@ -240,6 +246,7 @@ struct hb_paint_extents_context_t { const hb_bounds_t src_bounds = groups.pop (); hb_bounds_t &backdrop_bounds = groups.tail (); + // https://learn.microsoft.com/en-us/typography/opentype/spec/colr#format-32-paintcomposite switch ((int) mode) { case HB_PAINT_COMPOSITE_MODE_CLEAR: