Skip to content

Commit 59f68c2

Browse files
committed
Move sorting requirement from tableCount to the array field.
1 parent 0d75a6c commit 59f68c2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1967,9 +1967,7 @@ A glyph keyed patch contains a collection of data chunks that are each associate
19671967
<td>uint8</td>
19681968
<td>tableCount</td>
19691969
<td>
1970-
The number of [[open-type/otff#table-directory|tables]] the patch has data for. Must be in ascending sorted order and must not
1971-
contain any duplicate values. For sorting tag values are interpreted as a 4 byte big endian unsigned integer and sorted by the
1972-
integer value.
1970+
The number of [[open-type/otff#table-directory|tables]] the patch has data for.
19731971
</td>
19741972
</tr>
19751973
<tr>
@@ -1984,7 +1982,9 @@ A glyph keyed patch contains a collection of data chunks that are each associate
19841982
<tr>
19851983
<td>Tag</td>
19861984
<td><dfn for="GlyphPatches">tables</dfn>[tableCount]</td>
1987-
<td>An array of [[open-type/otff#table-directory|tables]] (by tag) included in the patch.</td>
1985+
<td>An array of [[open-type/otff#table-directory|tables]] (by tag) included in the patch. Must be in ascending sorted
1986+
order and must not contain any duplicate values. For sorting tag values are interpreted as a 4 byte big endian
1987+
unsigned integer and sorted by the integer value.</td>
19881988
</tr>
19891989
<tr>
19901990
<td>Offset32</td>

Overview.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta content="WD" name="w3c-status">
77
<meta content="Bikeshed version d765c696b, updated Fri Mar 8 15:58:52 2024 -0800" name="generator">
88
<link href="https://www.w3.org/TR/IFT/" rel="canonical">
9-
<meta content="75d55d4f35818826858aa7bd5f693ec5785e04a1" name="revision">
9+
<meta content="0d75a6c2ab28a5270ebf37ea59f9960ede1371e6" name="revision">
1010
<meta content="dark light" name="color-scheme">
1111
<style>
1212
.conform:hover {background: #31668f; color: white}
@@ -1304,7 +1304,7 @@ <h3 class="heading settled" data-level="4.5" id="ift-font-coverage"><span class=
13041304
<c- c1># shaping_unit is an array where each item has a code point, associated list of</c->
13051305
<c- c1># layout features, and the design space point that code point is being rendered with.</c->
13061306
<c- k>def</c-> <c- nf>supported_spans</c-><c- p>(</c-><c- n>shaping_unit</c-><c- p>,</c-> <c- n>ift_font</c-><c- p>):</c->
1307-
<c- n>current_start</c-><c- p>,</c-> <c- n>current_end</c-><c- p>,</c-> <c- n>current_subset_def</c-> <c- o>=</c-> <c- kc>None</c->
1307+
<c- n>current_start</c-> <c- o>=</c-> <c- n>current_end</c-> <c- o>=</c-> <c- n>current_subset_def</c-> <c- o>=</c-> <c- kc>None</c->
13081308
<c- n>supported_spans</c-> <c- o>=</c-> <c- p>[]</c->
13091309

13101310
<c- n>i</c-> <c- o>=</c-> <c- mi>0</c->
@@ -1329,7 +1329,7 @@ <h3 class="heading settled" data-level="4.5" id="ift-font-coverage"><span class=
13291329
<c- k>else</c-><c- p>:</c->
13301330
<c- n>i</c-> <c- o>+=</c-> <c- mi>1</c->
13311331

1332-
<c- n>current_start</c-><c- p>,</c-> <c- n>current_end</c-><c- p>,</c-> <c- n>current_subset_def</c-> <c- o>=</c-> <c- kc>None</c->
1332+
<c- n>current_start</c-> <c- o>=</c-> <c- n>current_end</c-> <c- o>=</c-> <c- n>current_subset_def</c-> <c- o>=</c-> <c- kc>None</c->
13331333

13341334
<c- k>return</c-> <c- n>supported_spans</c->
13351335

@@ -2428,9 +2428,7 @@ <h3 class="heading settled" data-level="6.3" id="glyph-keyed"><span class="secno
24282428
<tr>
24292429
<td>uint8
24302430
<td>tableCount
2431-
<td> The number of <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/otff#table-directory">tables</a> the patch has data for. Must be in ascending sorted order and must not
2432-
contain any duplicate values. For sorting tag values are interpreted as a 4 byte big endian unsigned integer and sorted by the
2433-
integer value.
2431+
<td> The number of <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/otff#table-directory">tables</a> the patch has data for.
24342432
<tr>
24352433
<td>uint16/uint24
24362434
<td><dfn class="dfn-paneled" data-dfn-for="GlyphPatches" data-dfn-type="dfn" data-noexport id="glyphpatches-glyphids">glyphIds</dfn>[glyphCount]
@@ -2439,7 +2437,9 @@ <h3 class="heading settled" data-level="6.3" id="glyph-keyed"><span class="secno
24392437
<tr>
24402438
<td>Tag
24412439
<td><dfn class="dfn-paneled" data-dfn-for="GlyphPatches" data-dfn-type="dfn" data-noexport id="glyphpatches-tables">tables</dfn>[tableCount]
2442-
<td>An array of <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/otff#table-directory">tables</a> (by tag) included in the patch.
2440+
<td>An array of <a href="https://docs.microsoft.com/en-us/typography/opentype/spec/otff#table-directory">tables</a> (by tag) included in the patch. Must be in ascending sorted
2441+
order and must not contain any duplicate values. For sorting tag values are interpreted as a 4 byte big endian
2442+
unsigned integer and sorted by the integer value.
24432443
<tr>
24442444
<td>Offset32
24452445
<td><dfn class="dfn-paneled" data-dfn-for="GlyphPatches" data-dfn-type="dfn" data-noexport id="glyphpatches-glyphdataoffsets">glyphDataOffsets</dfn>[glyphCount * tableCount + 1]

0 commit comments

Comments
 (0)