Affiliations
Projects
Talks & podcasts
WG21 papers
Blog posts
Other activity
- Merged PR[VARC] End the drawing when the nesting or composite limit is met
When a VARC composite is nested 64 levels deep, or is the 16,385th composite of one drawing, stop drawing altogether instead of skipping it and going on with its siblings. This is the same shape as the raster flattener's depth cap (#6877).…
HarfBuzz#6883 · by behdad - Merged PR[gpu] Accept a single quadratic by how far the cubic leaves it
hb_gpu_cubic_approx_quadratic() tried the quadratic of the cubic's two end tangents and tested it at equal parameters: how far apart the two are at the same t. A cubic runs along that quadratic at another pace, so most of that distance is…
HarfBuzz#6882 · by behdad - Merged PR[gpu] Do not try a single quadratic that the third difference rules out
hb_gpu_cubic_to_quadratics() tried a single quadratic for every cubic (intersect the end tangents, then the recursive fit test) before computing how many quadratics the cubic takes. Most cubics cannot fit one, and the third difference says…
HarfBuzz#6881 · by behdad - Merged PR[gpu] Compute how many quadratics a cubic takes instead of trying
The number of quadratics a cubic takes is now computed, not found by trying. The result this uses For the cu2qu spline of n ≥ 2 quadratics, how far the spline is from the cubic does not depend on the cubic but for the length of its third…
HarfBuzz#6880 · by behdad - Merged PR[gpu] Convert cubics to quadratic splines, as fonttools cu2qu does
Replaces the recursive single-quadratic conversion in hb-gpu-cu2qu.hh with the quadratic spline that fonttools' cu2qu builds. What was wrong The file took cu2qu's single-quadratic step (the quadratic through the intersection of the cubic's…
HarfBuzz#6879 · by behdad - Merged PR[limits] Take the glyph work budget back to 1<<24
Takes HB_BUDGET_GLYPH from 1<<25 back to 1<<24, the value it had until c4d061380 (#6667). One line; independent of #6876 and #6877. Why The budget is what a font can make one draw or paint session spend, and time goes with it. Measured…
HarfBuzz#6878 · by behdad - Merged PR[raster] End an outline at a curve that 12 halvings do not flatten
What this changes The raster flatteners halved a curve up to 16 times and then took the chord of whatever was left. This makes it 12, and a curve that is still not flat then ends the outline: no more edges are added, as when the edge cap…
HarfBuzz#6877 · by behdad - Merged PR[raster] Do not subdivide a curve whose flatness is NaN
Fixes the hb-raster-fuzzer timeout of ClusterFuzz testcase 6747513078743040 ( What happened The flatteners subdivide a curve until its deviation is within the flatness threshold, to a depth of 16. The test was written as deviation…
HarfBuzz#6876 · by behdad - Merged PR[gpu] Stop splitting a cubic at a point the encoder cannot store
Fixes the hb-gpu-fuzzer timeout of ClusterFuzz testcase 5907835161214976. What happened hb_gpu_cubic_to_quadratics() splits a cubic that fits no quadratic up to ten levels deep: 2,047 nodes, each with a fit test, and 1,024 lines. A cubic…
HarfBuzz#6875 · by behdad - Merged PR[ft] Paint no COLR linear gradient whose P1 or P2 is at its P0
Follow-up to #6862, where this was left open on the review thread. What was wrong COLR says of a linear gradient: "If either point p1 or p2 is the same as point p0, the gradient is ill-formed and must not be rendered." Since 295b40d3b the…
HarfBuzz#6874 · by behdad - Merged PR[vector] Make the box of a PDF form hold what the form paints
Follow-up to #6863, where this was left open on the review thread. What was wrong The PDF writer puts groups in Form XObjects, and what a form paints is clipped to the form's /BBox. Every form had the same box, [-32767 -32767 32767 32767]…
HarfBuzz#6873 · by behdad - Merged PR[use] Give the generic bases named by code point their class
The USE specification makes U+2015, U+2022 and U+25FB..U+25FE generic bases (GB) by naming them in its table of classes: they have no Indic_Syllabic_Category. is_BASE_OTHER lists them, but the generator only classifies a code point that…
HarfBuzz#6870 · by behdad - Merged PR[coretext] Load a face that has no PostScript name
Since #6683, when Core Text returns several descriptors for a file or a blob, the face is found among them by its PostScript name. A file has several descriptors when it is a collection, and also when its one face has named instances. A…
HarfBuzz#6872 · by behdad - Merged PR[kern] Apply vertical kerning values in the advance direction
The value of a kerning pair moves the two glyphs apart when it is positive and together when it is negative. OpenType and Apple both say so of kern, and Apple of kerx, with no exception for vertical subtables. HarfBuzz added the value to…
HarfBuzz#6871 · by behdad - Merged PR[aat] Fail the buffer when a state machine spends the work budget
A state-machine transition that does not advance is charged to the buffer's work budget, so that a machine that loops comes to an end. When the budget ran out, the driver went on to the next glyph and carried on: the buffer stayed…
HarfBuzz#6869 · by behdad