mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[vector] Drop hb_vector_{draw,paint}_{set,get}_flat (#5927)
Flat mode disabled glyph reuse / caching to produce inline- everything SVG output. Its main use case was making hb-vector SVGs safe to concatenate side-by-side in a single document, but the recently-added svg_set_prefix API solves that without giving up the cache. No remaining callers in tree (util/vector-output.hh's --flat option goes too). Removes: - hb_vector_draw_set_flat / get_flat - hb_vector_paint_set_flat / get_flat - the `flat` field on both contexts - all `if (flat)` / `bool can_cache = !flat` branches - the --flat option in util/vector-output.hh - the four "flat*" expected files in test/vector/basic - the flat_draw / flat_paint params in the vector fuzzer - sections-list entries meson test --no-rebuild green (241/241). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ec63b7d921
commit
ca75fd5ff9
13 files changed
+5
-163
No files matched your search
@@ -1,6 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-16 -1000 1545 1289" width="1545" height="1289">
|
||||
|
||||
<path d="M194,-12C255,-12 309,20 355,58L358,58L365,0L433,0L433,298C433,419 383,498 264,498C186,498 118,464 73,435L105,378C143,404 194,430 250,430C330,430 350,370 350,308C143,285 52,232 52,126C52,39 113,-12 194,-12ZM218,54C170,54 132,77 132,132C132,194 188,234 350,254L350,119C303,77 265,54 218,54Z" transform="translate(0,0) scale(1,-1)"/>
|
||||
<path d="M297,-12C408,-12 507,85 507,251C507,401 440,498 314,498C260,498 206,469 162,430L164,518L164,712L82,712L82,0L148,0L155,50L158,50C201,11 252,-12 297,-12ZM283,57C251,57 207,71 164,108L164,363C210,406 253,429 294,429C386,429 422,357 422,250C422,130 363,57 283,57Z" transform="translate(504,0) scale(1,-1)"/>
|
||||
<path d="M274,-12C332,-12 387,11 431,50L395,105C365,78 326,56 281,56C192,56 131,131 131,242C131,354 195,430 283,430C322,430 352,412 380,387L422,441C388,472 344,498 280,498C155,498 46,405 46,242C46,81 145,-12 274,-12Z" transform="translate(1057,0) scale(1,-1)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1021 B |
@@ -1,6 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-16 -1916 3367 2432" width="3367" height="2432">
|
||||
|
||||
<path d="M808,0Q792,32 782,114Q653,-20 474,-20Q314,-20 212,70Q109,161 109,300Q109,469 238,562Q366,656 599,656L779,656L779,741Q779,838 721,896Q663,953 550,953Q451,953 384,903Q317,853 317,782L131,782Q131,863 188,938Q246,1014 344,1058Q443,1102 561,1102Q748,1102 854,1008Q960,915 964,751L964,253Q964,104 1002,16L1002,0L808,0ZM501,141Q588,141 666,186Q744,231 779,303L779,525L634,525Q294,525 294,326Q294,239 352,190Q410,141 501,141Z" transform="translate(0,0) scale(1,-1)"/>
|
||||
<path d="M1056,529Q1056,281 942,130Q828,-20 636,-20Q431,-20 319,125L310,0L140,0L140,1536L325,1536L325,963Q437,1102 634,1102Q831,1102 944,953Q1056,804 1056,545L1056,529ZM871,550Q871,739 798,842Q725,945 588,945Q405,945 325,775L325,307Q410,137 590,137Q723,137 797,240Q871,343 871,550Z" transform="translate(1114,0) scale(1,-1)"/>
|
||||
<path d="M574,131Q673,131 747,191Q821,251 829,341L1004,341Q999,248 940,164Q881,80 782,30Q684,-20 574,-20Q353,-20 222,128Q92,275 92,531L92,562Q92,720 150,843Q208,966 316,1034Q425,1102 573,1102Q755,1102 876,993Q996,884 1004,710L829,710Q821,815 750,882Q678,950 573,950Q432,950 354,848Q277,747 277,555L277,520Q277,333 354,232Q431,131 574,131Z" transform="translate(2263,0) scale(1,-1)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -1,6 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-16 -1916 3367 2432" width="3367" height="2432">
|
||||
|
||||
<path d="M808,0Q792,32 782,114Q653,-20 474,-20Q314,-20 211.5,70.5Q109,161 109,300Q109,469 237.5,562.5Q366,656 599,656L779,656L779,741Q779,838 721,895.5Q663,953 550,953Q451,953 384,903Q317,853 317,782L131,782Q131,863 188.5,938.5Q246,1014 344.5,1058Q443,1102 561,1102Q748,1102 854,1008.5Q960,915 964,751L964,253Q964,104 1002,16L1002,0L808,0ZM501,141Q588,141 666,186Q744,231 779,303L779,525L634,525Q294,525 294,326Q294,239 352,190Q410,141 501,141Z" transform="translate(0,0) scale(1,-1)"/>
|
||||
<path d="M1056,529Q1056,281 942,130.5Q828,-20 636,-20Q431,-20 319,125L310,0L140,0L140,1536L325,1536L325,963Q437,1102 634,1102Q831,1102 943.5,953Q1056,804 1056,545L1056,529ZM871,550Q871,739 798,842Q725,945 588,945Q405,945 325,775L325,307Q410,137 590,137Q723,137 797,240Q871,343 871,550Z" transform="translate(1114,0) scale(1,-1)"/>
|
||||
<path d="M574,131Q673,131 747,191Q821,251 829,341L1004,341Q999,248 940,164Q881,80 782.5,30Q684,-20 574,-20Q353,-20 222.5,127.5Q92,275 92,531L92,562Q92,720 150,843Q208,966 316.5,1034Q425,1102 573,1102Q755,1102 875.5,993Q996,884 1004,710L829,710Q821,815 749.5,882.5Q678,950 573,950Q432,950 354.5,848.5Q277,747 277,555L277,520Q277,333 354,232Q431,131 574,131Z" transform="translate(2263,0) scale(1,-1)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
@@ -1,6 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-16 -1916 3367 2432" width="3367" height="2432">
|
||||
|
||||
<path d="M808,0Q792,32 782,114Q653,-20 474,-20Q314,-20 211.5,70.5Q109,161 109,300Q109,469 237.5,562.5Q366,656 599,656L779,656L779,741Q779,838 721,895.5Q663,953 550,953Q451,953 384,903Q317,853 317,782L131,782Q131,863 188.5,938.5Q246,1014 344.5,1058Q443,1102 561,1102Q748,1102 854,1008.5Q960,915 964,751L964,253Q964,104 1002,16L1002,0L808,0ZM501,141Q588,141 666,186Q744,231 779,303L779,525L634,525Q294,525 294,326Q294,239 352,190Q410,141 501,141Z" transform="translate(0,0) scale(1,-1)"/>
|
||||
<path d="M1056,529Q1056,281 942,130.5Q828,-20 636,-20Q431,-20 319,125L310,0L140,0L140,1536L325,1536L325,963Q437,1102 634,1102Q831,1102 943.5,953Q1056,804 1056,545L1056,529ZM871,550Q871,739 798,842Q725,945 588,945Q405,945 325,775L325,307Q410,137 590,137Q723,137 797,240Q871,343 871,550Z" transform="translate(1114,0) scale(1,-1)"/>
|
||||
<path d="M574,131Q673,131 747,191Q821,251 829,341L1004,341Q999,248 940,164Q881,80 782.5,30Q684,-20 574,-20Q353,-20 222.5,127.5Q92,275 92,531L92,562Q92,720 150,843Q208,966 316.5,1034Q425,1102 573,1102Q755,1102 875.5,993Q996,884 1004,710L829,710Q821,815 749.5,882.5Q678,950 573,950Q432,950 354.5,848.5Q277,747 277,555L277,520Q277,333 354,232Q431,131 574,131Z" transform="translate(2263,0) scale(1,-1)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
Reference in new issue
Block a user