[paint-extents] Comments
This commit is contained in:
parent
988ca459f3
commit
aba2063c22
|
@ -29,6 +29,12 @@
|
||||||
#include "hb-paint.hh"
|
#include "hb-paint.hh"
|
||||||
#include "hb-draw.h"
|
#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
|
typedef struct hb_extents_t
|
||||||
{
|
{
|
||||||
|
@ -240,6 +246,7 @@ struct hb_paint_extents_context_t {
|
||||||
const hb_bounds_t src_bounds = groups.pop ();
|
const hb_bounds_t src_bounds = groups.pop ();
|
||||||
hb_bounds_t &backdrop_bounds = groups.tail ();
|
hb_bounds_t &backdrop_bounds = groups.tail ();
|
||||||
|
|
||||||
|
// https://learn.microsoft.com/en-us/typography/opentype/spec/colr#format-32-paintcomposite
|
||||||
switch ((int) mode)
|
switch ((int) mode)
|
||||||
{
|
{
|
||||||
case HB_PAINT_COMPOSITE_MODE_CLEAR:
|
case HB_PAINT_COMPOSITE_MODE_CLEAR:
|
||||||
|
|
Loading…
Reference in New Issue