@hunghg255/bm-render-linux-x64-gnu 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +38 -0
- package/README.md +22 -2
- package/THIRD-PARTY-NOTICES.md +1228 -0
- package/bm-render.linux-x64-gnu.node +0 -0
- package/package.json +41 -4
|
@@ -0,0 +1,1228 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
bm-render is a Zig port of [takumi](https://github.com/kane50613/takumi) (Copyright (c) 2025 Kane Wang,
|
|
4
|
+
MIT OR Apache-2.0). The npm package contains JavaScript wrappers and WebAssembly binaries compiled from
|
|
5
|
+
bm-render's Zig sources. Parts of those sources are transliterations of takumi code that itself follows
|
|
6
|
+
Chromium / Blink, Skia and other projects, or follow third-party algorithms and data directly. This file
|
|
7
|
+
carries the notices those sources require. The npm package does not include the vendored test corpus
|
|
8
|
+
in `tests/upstream/takumi`, whose reference fonts and license files are retained in the source repository.
|
|
9
|
+
|
|
10
|
+
1. Chromium (Blink) and Skia: BSD-style licenses (takumi's `LICENSE-CHROMIUM`, verbatim)
|
|
11
|
+
2. tiny-skia: BSD 3-Clause
|
|
12
|
+
3. HarfBuzz: "Old MIT" license
|
|
13
|
+
4. libwebp: BSD 3-Clause
|
|
14
|
+
5. Independent JPEG Group (libjpeg)
|
|
15
|
+
6. Unicode data and algorithms (UCD, emoji-data, ICU / ICU4X): Unicode License V3
|
|
16
|
+
7. emoji-segmenter: Apache License 2.0
|
|
17
|
+
8. Brotli: MIT
|
|
18
|
+
9. Taffy: MIT
|
|
19
|
+
10. krilla (PDF output): MIT OR Apache-2.0, with the notices of code krilla takes from resvg (MPL 2.0), typst, svg2pdf and vello
|
|
20
|
+
11. subsetter (PDF font subsetting): MIT, with ttf-parser and fonttools (MIT)
|
|
21
|
+
12. pdf-writer and xmp-writer (PDF output): MIT OR Apache-2.0
|
|
22
|
+
13. Compact ICC Profiles, sRGB v4 (PDF/A output): CC0 1.0
|
|
23
|
+
14. Geist (the PDF builds' bundled last-resort font): SIL Open Font License 1.1
|
|
24
|
+
|
|
25
|
+
## 1. Chromium (Blink) and Skia
|
|
26
|
+
|
|
27
|
+
bm-render's layout (LayoutUnit arithmetic, inline line boxes, tables, floats), border / outline /
|
|
28
|
+
decoration painting, table painting, font selection and fallback, colour helpers, dash fitting, the
|
|
29
|
+
Gaussian blur (`src/raster/blur.zig`, Skia `SkBlurEngine`), the HTML UA styles and related code are ports
|
|
30
|
+
of the takumi-core parts listed below (the list names takumi's Rust files). The following text is
|
|
31
|
+
takumi's `takumi-core/LICENSE-CHROMIUM`, reproduced verbatim.
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
Parts of takumi-core follow algorithms from Chromium's Blink renderer and the
|
|
35
|
+
Skia library it draws with. Each part names its source below, followed by the
|
|
36
|
+
notice that source carries.
|
|
37
|
+
|
|
38
|
+
1. The dash and dot spacing in src/layout/border.rs (`BorderStyle::dash_pattern`,
|
|
39
|
+
`square_dash`, and `select_best_dash_gap`), from
|
|
40
|
+
third_party/blink/renderer/platform/graphics/styled_stroke_data.cc, and
|
|
41
|
+
`FixedPoint`, `LayoutUnit`, `TextRunLayoutUnit`, and `InlineLayoutUnit` in
|
|
42
|
+
src/layout_unit.rs, from
|
|
43
|
+
third_party/blink/renderer/platform/geometry/layout_unit.h, and
|
|
44
|
+
`FontFace::get_font_selection_capabilities` in src/fonts/font_face.rs, from
|
|
45
|
+
third_party/blink/renderer/core/css/font_face.cc, and
|
|
46
|
+
`FontCustomPlatformData` and `FontPlatformData` in
|
|
47
|
+
src/fonts/font_custom_platform_data.rs, from
|
|
48
|
+
third_party/blink/renderer/platform/fonts/font_custom_platform_data.cc and
|
|
49
|
+
third_party/blink/renderer/platform/fonts/font_platform_data.h.
|
|
50
|
+
|
|
51
|
+
Copyright (c) 2012, Google Inc. All rights reserved.
|
|
52
|
+
Copyright (C) 2013 Google Inc. All rights reserved.
|
|
53
|
+
Copyright (C) 2007 Apple Computer, Inc.
|
|
54
|
+
Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved.
|
|
55
|
+
Copyright (C) 2010 Company 100, Inc.
|
|
56
|
+
|
|
57
|
+
Redistribution and use in source and binary forms, with or without
|
|
58
|
+
modification, are permitted provided that the following conditions are
|
|
59
|
+
met:
|
|
60
|
+
|
|
61
|
+
* Redistributions of source code must retain the above copyright
|
|
62
|
+
notice, this list of conditions and the following disclaimer.
|
|
63
|
+
* Redistributions in binary form must reproduce the above
|
|
64
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
65
|
+
in the documentation and/or other materials provided with the
|
|
66
|
+
distribution.
|
|
67
|
+
* Neither the name of Google Inc. nor the names of its
|
|
68
|
+
contributors may be used to endorse or promote products derived from
|
|
69
|
+
this software without specific prior written permission.
|
|
70
|
+
|
|
71
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
72
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
73
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
74
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
75
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
76
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
77
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
78
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
79
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
80
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
81
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
2. `Color::dark` and `Color::light` in src/style/properties/color.rs, from
|
|
85
|
+
third_party/blink/renderer/platform/graphics/color.cc, and
|
|
86
|
+
`FontDataForRangeSet` in src/fonts/font_data_for_range_set.rs, from
|
|
87
|
+
third_party/blink/renderer/platform/fonts/font_data_for_range_set.h, and
|
|
88
|
+
`FontData::font_data_for_character` in src/fonts/font_fallback_list.rs, from
|
|
89
|
+
third_party/blink/renderer/platform/fonts/segmented_font_data.cc, and
|
|
90
|
+
`SimpleFontData::small_caps_font_data` in src/fonts/simple_font_data.rs, from
|
|
91
|
+
third_party/blink/renderer/platform/fonts/simple_font_data.cc, and
|
|
92
|
+
`FontFaceCache` in src/fonts/font_face_cache.rs, `CssSegmentedFontFace` in
|
|
93
|
+
src/fonts/css_segmented_font_face.rs, `FontFace::get_font_data` in
|
|
94
|
+
src/fonts/font_face.rs, and `CssFontSelector::get_font_data` in
|
|
95
|
+
src/fonts/css_font_selector.rs, from
|
|
96
|
+
third_party/blink/renderer/core/css/font_face_cache.cc,
|
|
97
|
+
third_party/blink/renderer/core/css/css_segmented_font_face.cc,
|
|
98
|
+
third_party/blink/renderer/core/css/css_font_face.cc, and
|
|
99
|
+
third_party/blink/renderer/core/css/css_font_selector.cc.
|
|
100
|
+
|
|
101
|
+
Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009 Apple Inc. All rights reserved.
|
|
102
|
+
Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved.
|
|
103
|
+
(C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
|
|
104
|
+
Copyright (C) 2013 Google Inc. All rights reserved.
|
|
105
|
+
|
|
106
|
+
Redistribution and use in source and binary forms, with or without
|
|
107
|
+
modification, are permitted provided that the following conditions
|
|
108
|
+
are met:
|
|
109
|
+
1. Redistributions of source code must retain the above copyright
|
|
110
|
+
notice, this list of conditions and the following disclaimer.
|
|
111
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
112
|
+
notice, this list of conditions and the following disclaimer in the
|
|
113
|
+
documentation and/or other materials provided with the distribution.
|
|
114
|
+
|
|
115
|
+
THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
|
|
116
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
117
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
118
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
|
|
119
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
120
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
121
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
122
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
123
|
+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
124
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
125
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
3. `Color::inset_outset` in src/style/properties/color.rs, `BorderShape`,
|
|
129
|
+
`Miter`, `StyledLine` and the side order in src/painter/border.rs,
|
|
130
|
+
`BoxSideRect` in src/painter/box_side.rs, `OutlineIsland::paint`
|
|
131
|
+
and `ComplexOutline` in src/painter/outline.rs, `RightAngleContour` in
|
|
132
|
+
src/layout/inline/outline.rs, the decoration lines in
|
|
133
|
+
src/painter/decoration.rs, the property rules in src/paint_property.rs,
|
|
134
|
+
`ConversionContext` in src/paint_chunk.rs, the corners and side clips
|
|
135
|
+
in src/layout/contoured_rect.rs, the table layout in src/layout/table/,
|
|
136
|
+
the table painting in src/painter/table.rs, the background layer geometry in
|
|
137
|
+
src/layout/background_image_geometry.rs, and the line box alignment in
|
|
138
|
+
src/layout/inline/line_box.rs, from
|
|
139
|
+
third_party/blink/renderer/core/paint/box_border_painter.cc,
|
|
140
|
+
third_party/blink/renderer/core/paint/outline_painter.cc,
|
|
141
|
+
third_party/blink/renderer/core/paint/decoration_line_painter.cc,
|
|
142
|
+
third_party/blink/renderer/core/paint/text_decoration_info.cc,
|
|
143
|
+
third_party/blink/renderer/core/paint/text_painter.cc,
|
|
144
|
+
third_party/blink/renderer/core/paint/paint_property_tree_builder.cc,
|
|
145
|
+
third_party/blink/renderer/core/paint/contoured_border_geometry.cc,
|
|
146
|
+
third_party/blink/renderer/platform/geometry/contoured_rect.cc,
|
|
147
|
+
third_party/blink/renderer/core/paint/background_image_geometry.cc,
|
|
148
|
+
third_party/blink/renderer/core/paint/box_painter_base.cc,
|
|
149
|
+
third_party/blink/renderer/core/paint/table_painters.cc,
|
|
150
|
+
third_party/blink/renderer/core/layout/table/table_layout_algorithm.cc,
|
|
151
|
+
third_party/blink/renderer/core/layout/table/table_section_layout_algorithm.cc,
|
|
152
|
+
third_party/blink/renderer/core/layout/table/table_row_layout_algorithm.cc,
|
|
153
|
+
third_party/blink/renderer/core/layout/table/table_layout_utils.cc,
|
|
154
|
+
third_party/blink/renderer/core/layout/table/table_layout_algorithm_types.cc,
|
|
155
|
+
third_party/blink/renderer/core/layout/table/table_borders.cc,
|
|
156
|
+
third_party/blink/renderer/core/layout/table/table_node.cc,
|
|
157
|
+
third_party/blink/renderer/core/layout/table/layout_table_column_visitor.h,
|
|
158
|
+
third_party/blink/renderer/core/layout/table/table_fragment_data.h,
|
|
159
|
+
third_party/blink/renderer/core/layout/inline/inline_box_state.cc,
|
|
160
|
+
third_party/blink/renderer/platform/geometry/path_builder.cc,
|
|
161
|
+
third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc;
|
|
162
|
+
and `HarfBuzzRunGlyphData` in src/fonts/shaping/glyph_data.rs and
|
|
163
|
+
`GlyphDataRange` in src/fonts/shaping/glyph_data_range.rs, from
|
|
164
|
+
third_party/blink/renderer/platform/fonts/shaping/glyph_data.h and
|
|
165
|
+
third_party/blink/renderer/platform/fonts/shaping/glyph_data_range.cc;
|
|
166
|
+
and `ScriptRunIterator` in src/fonts/script_run_iterator.rs,
|
|
167
|
+
`SymbolsIterator` in src/fonts/symbols_iterator.rs, `FontFallbackPriority`
|
|
168
|
+
in src/fonts/font_fallback_priority.rs, `RunSegmenter` in
|
|
169
|
+
src/fonts/shaping/run_segmenter.rs, and `EmojiSegmentationCategory` in
|
|
170
|
+
src/text/emoji_segmentation_category.rs, from
|
|
171
|
+
third_party/blink/renderer/platform/fonts/script_run_iterator.cc,
|
|
172
|
+
third_party/blink/renderer/platform/fonts/symbols_iterator.cc,
|
|
173
|
+
third_party/blink/renderer/platform/fonts/font_fallback_priority.h,
|
|
174
|
+
third_party/blink/renderer/platform/fonts/shaping/run_segmenter.cc, and
|
|
175
|
+
third_party/blink/renderer/platform/text/emoji_segmentation_category_inline_header.h;
|
|
176
|
+
and `FontFallbackIterator` in src/fonts/font_fallback_iterator.rs and
|
|
177
|
+
`ShapeResultView` in src/fonts/shaping/shape_result_view.rs, from
|
|
178
|
+
third_party/blink/renderer/platform/fonts/font_fallback_iterator.cc and
|
|
179
|
+
third_party/blink/renderer/platform/fonts/shaping/shape_result_view.cc;
|
|
180
|
+
and `ShapeResultSpacing` in src/fonts/shaping/shape_result_spacing.rs and
|
|
181
|
+
`JustificationContext` in src/text/justification_opportunity.rs, from
|
|
182
|
+
third_party/blink/renderer/platform/fonts/shaping/shape_result_spacing.cc and
|
|
183
|
+
third_party/blink/renderer/platform/text/justification_opportunity.cc;
|
|
184
|
+
and `ShapingLineBreaker` in src/fonts/shaping/shaping_line_breaker.rs, from
|
|
185
|
+
third_party/blink/renderer/platform/fonts/shaping/shaping_line_breaker.cc;
|
|
186
|
+
and `InlineItem` in src/layout/inline/inline_item.rs, `InlineItemsBuilder`
|
|
187
|
+
in src/layout/inline/inline_items_builder.rs, `collect_inlines` in
|
|
188
|
+
src/layout/inline/inline_node.rs, `InlineItemSegments` in
|
|
189
|
+
src/layout/inline/inline_item_segment.rs, `InlineNodeData` in
|
|
190
|
+
src/layout/inline/inline_node_data.rs, `BidiParagraph` in
|
|
191
|
+
src/text/bidi_paragraph.rs, the marker margins and `width_of_symbol` in
|
|
192
|
+
src/layout/list_marker.rs, `LineBreaker` in src/layout/inline/line_breaker.rs,
|
|
193
|
+
`LineInfo` in src/layout/inline/line_info.rs, `InlineItemResult` and
|
|
194
|
+
`HyphenResult` in src/layout/inline/inline_item_result.rs, `InlineBreakToken`
|
|
195
|
+
in src/layout/inline/inline_break_token.rs, `LineBreakPoint` in
|
|
196
|
+
src/layout/inline/line_break_point.rs, `InlineItemTextIndex` in
|
|
197
|
+
src/layout/inline/inline_item_text_index.rs, the exclusions in
|
|
198
|
+
src/layout/exclusions/, `BfcOffset` and `BfcRect` in src/layout/bfc_rect.rs,
|
|
199
|
+
the float placement in src/layout/floats_utils.rs, `InlineBoxState` and
|
|
200
|
+
`InlineLayoutStateStack` in src/layout/inline/inline_box_state.rs,
|
|
201
|
+
`LogicalLineBuilder` in src/layout/inline/logical_line_builder.rs,
|
|
202
|
+
`LogicalLineItem` in src/layout/inline/logical_line_item.rs, `FontHeight` in
|
|
203
|
+
src/fonts/font_height.rs, `compute_relative_offset_for_inline` in
|
|
204
|
+
src/layout/relative_utils.rs, the logical geometry in
|
|
205
|
+
src/layout/logical_rect.rs, `LayoutResult::baseline_metrics` in
|
|
206
|
+
src/layout/inline/inline_item_result.rs, `InlineLayoutAlgorithm` and
|
|
207
|
+
`TextAlign::line_offset_for_text_align` in
|
|
208
|
+
src/layout/inline/inline_layout_algorithm.rs, the justification in
|
|
209
|
+
src/layout/inline/justification_utils.rs, `LeadingFloats` in
|
|
210
|
+
src/layout/inline/leading_floats.rs, `InlineChildLayoutContext` in
|
|
211
|
+
src/layout/inline/inline_child_layout_context.rs, `LineTruncator` in
|
|
212
|
+
src/layout/inline/line_truncator.rs, `MinMaxSizes` and
|
|
213
|
+
`InlineNode::compute_min_max_sizes` in src/layout/inline/min_max_sizes.rs,
|
|
214
|
+
`ScoreLineBreaker` and `ScoreLineBreakContext` in
|
|
215
|
+
src/layout/inline/score_line_breaker.rs, the bisection in
|
|
216
|
+
src/layout/inline/paragraph_line_breaker.rs, `LineBreakCandidate` in
|
|
217
|
+
src/layout/inline/line_break_candidate.rs, `LineWidths` in
|
|
218
|
+
src/layout/inline/line_widths.rs, the line clamp in
|
|
219
|
+
src/layout/constraint_space.rs, `capitalize` in src/text/capitalize.rs,
|
|
220
|
+
`CaseMap` in src/text/case_map.rs, `SmallCapsIterator` in
|
|
221
|
+
src/fonts/small_caps_iterator.rs, `OpenTypeCapsSupport` in
|
|
222
|
+
src/fonts/open_type_caps_support.rs, `CaseMapIntend::fill_buffer` in
|
|
223
|
+
src/fonts/shaping/case_mapping_harfbuzz_buffer_filler.rs, `LineFitter` and the
|
|
224
|
+
`text-fit` scales in src/layout/inline/text_fit_utils.rs and
|
|
225
|
+
src/layout/inline/text_fit_scale.rs, and the `white-space` predicates in
|
|
226
|
+
src/style/properties/mod.rs and src/style/properties/text_wrap.rs, from
|
|
227
|
+
third_party/blink/renderer/core/layout/inline/inline_item.cc,
|
|
228
|
+
third_party/blink/renderer/core/layout/inline/inline_items_builder.cc,
|
|
229
|
+
third_party/blink/renderer/core/layout/inline/inline_node.cc,
|
|
230
|
+
third_party/blink/renderer/core/layout/inline/inline_item_segment.cc,
|
|
231
|
+
third_party/blink/renderer/core/layout/inline/inline_node_data.h,
|
|
232
|
+
third_party/blink/renderer/platform/text/bidi_paragraph.cc,
|
|
233
|
+
third_party/blink/renderer/core/layout/list/list_marker.cc,
|
|
234
|
+
third_party/blink/renderer/core/layout/inline/line_breaker.cc,
|
|
235
|
+
third_party/blink/renderer/core/layout/inline/line_info.cc,
|
|
236
|
+
third_party/blink/renderer/core/layout/inline/inline_item_result.cc,
|
|
237
|
+
third_party/blink/renderer/core/layout/inline/hyphen_result.cc,
|
|
238
|
+
third_party/blink/renderer/core/layout/inline/inline_break_token.h,
|
|
239
|
+
third_party/blink/renderer/core/layout/inline/line_break_point.h,
|
|
240
|
+
third_party/blink/renderer/core/layout/inline/inline_item_text_index.h,
|
|
241
|
+
third_party/blink/renderer/core/layout/exclusions/exclusion_space.cc,
|
|
242
|
+
third_party/blink/renderer/core/layout/exclusions/exclusion_area.h,
|
|
243
|
+
third_party/blink/renderer/core/layout/exclusions/layout_opportunity.cc,
|
|
244
|
+
third_party/blink/renderer/core/layout/exclusions/line_layout_opportunity.h,
|
|
245
|
+
third_party/blink/renderer/core/layout/geometry/bfc_rect.h,
|
|
246
|
+
third_party/blink/renderer/core/layout/floats_utils.cc,
|
|
247
|
+
third_party/blink/renderer/core/layout/unpositioned_float.h,
|
|
248
|
+
third_party/blink/renderer/core/layout/positioned_float.h,
|
|
249
|
+
third_party/blink/renderer/core/layout/inline/logical_line_builder.cc,
|
|
250
|
+
third_party/blink/renderer/core/layout/inline/logical_line_item.cc,
|
|
251
|
+
third_party/blink/renderer/core/layout/inline/inline_items_data.cc,
|
|
252
|
+
third_party/blink/renderer/platform/fonts/font_height.h,
|
|
253
|
+
third_party/blink/renderer/core/layout/relative_utils.cc,
|
|
254
|
+
third_party/blink/renderer/core/layout/geometry/logical_rect.h,
|
|
255
|
+
third_party/blink/renderer/core/layout/logical_box_fragment.cc,
|
|
256
|
+
third_party/blink/renderer/core/layout/inline/inline_layout_algorithm.cc,
|
|
257
|
+
third_party/blink/renderer/core/layout/inline/justification_utils.cc,
|
|
258
|
+
third_party/blink/renderer/core/layout/inline/leading_floats.h,
|
|
259
|
+
third_party/blink/renderer/core/layout/inline/inline_child_layout_context.cc,
|
|
260
|
+
third_party/blink/renderer/core/layout/length_utils.cc,
|
|
261
|
+
third_party/blink/renderer/core/layout/inline/line_truncator.cc,
|
|
262
|
+
third_party/blink/renderer/core/layout/min_max_sizes.h,
|
|
263
|
+
third_party/blink/renderer/core/layout/inline/score_line_breaker.cc,
|
|
264
|
+
third_party/blink/renderer/core/layout/inline/score_line_break_context.h,
|
|
265
|
+
third_party/blink/renderer/core/layout/inline/paragraph_line_breaker.cc,
|
|
266
|
+
third_party/blink/renderer/core/layout/inline/line_break_candidate.cc,
|
|
267
|
+
third_party/blink/renderer/core/layout/inline/line_widths.cc,
|
|
268
|
+
third_party/blink/renderer/core/layout/line_clamp_data.h,
|
|
269
|
+
third_party/blink/renderer/platform/text/capitalize.cc,
|
|
270
|
+
third_party/blink/renderer/platform/wtf/text/case_map.cc,
|
|
271
|
+
third_party/blink/renderer/platform/fonts/small_caps_iterator.cc,
|
|
272
|
+
third_party/blink/renderer/platform/fonts/opentype/open_type_caps_support.cc,
|
|
273
|
+
third_party/blink/renderer/platform/fonts/shaping/case_mapping_harfbuzz_buffer_filler.cc,
|
|
274
|
+
third_party/blink/renderer/core/layout/inline/text_fit_utils.cc,
|
|
275
|
+
third_party/blink/renderer/core/layout/inline/text_fit_scale.h, and
|
|
276
|
+
third_party/blink/renderer/core/css/white_space.h;
|
|
277
|
+
and `VariableFontSubType::probe_variable_font` in
|
|
278
|
+
src/fonts/font_custom_platform_data.rs and the tests in
|
|
279
|
+
src/fonts/font_selection_types.rs and src/fonts/font_face_cache.rs, from
|
|
280
|
+
third_party/blink/renderer/platform/fonts/opentype/font_format_check.cc,
|
|
281
|
+
third_party/blink/renderer/platform/fonts/font_selection_types_test.cc, and
|
|
282
|
+
third_party/blink/renderer/core/css/font_face_cache_test.cc.
|
|
283
|
+
|
|
284
|
+
Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2023, 2024, 2025 The Chromium Authors
|
|
285
|
+
|
|
286
|
+
Redistribution and use in source and binary forms, with or without
|
|
287
|
+
modification, are permitted provided that the following conditions are
|
|
288
|
+
met:
|
|
289
|
+
|
|
290
|
+
* Redistributions of source code must retain the above copyright
|
|
291
|
+
notice, this list of conditions and the following disclaimer.
|
|
292
|
+
* Redistributions in binary form must reproduce the above
|
|
293
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
294
|
+
in the documentation and/or other materials provided with the
|
|
295
|
+
distribution.
|
|
296
|
+
* Neither the name of Google LLC nor the names of its
|
|
297
|
+
contributors may be used to endorse or promote products derived from
|
|
298
|
+
this software without specific prior written permission.
|
|
299
|
+
|
|
300
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
301
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
302
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
303
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
304
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
305
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
306
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
307
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
308
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
309
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
310
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
4. `skips_ink` and its character tables in src/layout/intercept.rs, and the
|
|
314
|
+
predicates in src/text/character.rs, from
|
|
315
|
+
third_party/blink/renderer/platform/text/character.h,
|
|
316
|
+
third_party/blink/renderer/platform/text/character.cc,
|
|
317
|
+
third_party/blink/renderer/platform/text/character_emoji.cc, and
|
|
318
|
+
third_party/blink/renderer/platform/text/character_property_data.h.
|
|
319
|
+
|
|
320
|
+
Copyright (C) 2014 Google Inc. All rights reserved.
|
|
321
|
+
Copyright 2015, 2016 The Chromium Authors
|
|
322
|
+
|
|
323
|
+
Redistribution and use in source and binary forms, with or without
|
|
324
|
+
modification, are permitted provided that the following conditions are
|
|
325
|
+
met:
|
|
326
|
+
|
|
327
|
+
* Redistributions of source code must retain the above copyright
|
|
328
|
+
notice, this list of conditions and the following disclaimer.
|
|
329
|
+
* Redistributions in binary form must reproduce the above
|
|
330
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
331
|
+
in the documentation and/or other materials provided with the
|
|
332
|
+
distribution.
|
|
333
|
+
* Neither the name of Google LLC nor the names of its
|
|
334
|
+
contributors may be used to endorse or promote products derived from
|
|
335
|
+
this software without specific prior written permission.
|
|
336
|
+
|
|
337
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
338
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
339
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
340
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
341
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
342
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
343
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
344
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
345
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
346
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
347
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
348
|
+
|
|
349
|
+
5. The Gaussian blur passes in src/blur.rs, from Skia's src/core/SkBlurEngine.cpp.
|
|
350
|
+
|
|
351
|
+
Copyright (c) 2011 Google Inc. All rights reserved.
|
|
352
|
+
|
|
353
|
+
Redistribution and use in source and binary forms, with or without
|
|
354
|
+
modification, are permitted provided that the following conditions are
|
|
355
|
+
met:
|
|
356
|
+
|
|
357
|
+
* Redistributions of source code must retain the above copyright
|
|
358
|
+
notice, this list of conditions and the following disclaimer.
|
|
359
|
+
|
|
360
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
361
|
+
notice, this list of conditions and the following disclaimer in
|
|
362
|
+
the documentation and/or other materials provided with the
|
|
363
|
+
distribution.
|
|
364
|
+
|
|
365
|
+
* Neither the name of the copyright holder nor the names of its
|
|
366
|
+
contributors may be used to endorse or promote products derived
|
|
367
|
+
from this software without specific prior written permission.
|
|
368
|
+
|
|
369
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
370
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
371
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
372
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
373
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
374
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
375
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
376
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
377
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
378
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
379
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
6. `ShapeResult` in src/fonts/shaping/shape_result.rs, `ShapeResultRun` in
|
|
383
|
+
src/fonts/shaping/shape_result_run.rs, and `HarfBuzzShaper` in
|
|
384
|
+
src/fonts/shaping/harfbuzz_shaper.rs, from
|
|
385
|
+
third_party/blink/renderer/platform/fonts/shaping/shape_result.cc,
|
|
386
|
+
third_party/blink/renderer/platform/fonts/shaping/shape_result.h,
|
|
387
|
+
third_party/blink/renderer/platform/fonts/shaping/shape_result_run.h, and
|
|
388
|
+
third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc.
|
|
389
|
+
|
|
390
|
+
Copyright (c) 2012 Google Inc. All rights reserved.
|
|
391
|
+
Copyright (C) 2013 BlackBerry Limited. All rights reserved.
|
|
392
|
+
|
|
393
|
+
Redistribution and use in source and binary forms, with or without
|
|
394
|
+
modification, are permitted provided that the following conditions are
|
|
395
|
+
met:
|
|
396
|
+
|
|
397
|
+
* Redistributions of source code must retain the above copyright
|
|
398
|
+
notice, this list of conditions and the following disclaimer.
|
|
399
|
+
* Redistributions in binary form must reproduce the above
|
|
400
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
401
|
+
in the documentation and/or other materials provided with the
|
|
402
|
+
distribution.
|
|
403
|
+
* Neither the name of Google Inc. nor the names of its
|
|
404
|
+
contributors may be used to endorse or promote products derived from
|
|
405
|
+
this software without specific prior written permission.
|
|
406
|
+
|
|
407
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
408
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
409
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
410
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
411
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
412
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
413
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
414
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
415
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
416
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
417
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
7. `FontFallbackList` in src/fonts/font_fallback_list.rs, from
|
|
421
|
+
third_party/blink/renderer/platform/fonts/font_fallback_list.cc, and
|
|
422
|
+
`FontSelectionDescription::merge_font_variation_settings_with_descriptor` in
|
|
423
|
+
src/fonts/font_description.rs, from
|
|
424
|
+
third_party/blink/renderer/platform/fonts/font_description.cc.
|
|
425
|
+
|
|
426
|
+
Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
|
|
427
|
+
Copyright (C) 2007 Nicholas Shanks <contact@nickshanks.com>
|
|
428
|
+
Copyright (C) 2008 Apple Inc. All rights reserved.
|
|
429
|
+
|
|
430
|
+
Redistribution and use in source and binary forms, with or without
|
|
431
|
+
modification, are permitted provided that the following conditions
|
|
432
|
+
are met:
|
|
433
|
+
|
|
434
|
+
1. Redistributions of source code must retain the above copyright
|
|
435
|
+
notice, this list of conditions and the following disclaimer.
|
|
436
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
437
|
+
notice, this list of conditions and the following disclaimer in the
|
|
438
|
+
documentation and/or other materials provided with the distribution.
|
|
439
|
+
3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
|
|
440
|
+
its contributors may be used to endorse or promote products derived
|
|
441
|
+
from this software without specific prior written permission.
|
|
442
|
+
|
|
443
|
+
THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
|
|
444
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
445
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
446
|
+
DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
|
|
447
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
448
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
449
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
450
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
451
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
452
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
8. `FontSelectionValue`, `FontSelectionRange`, `FontSelectionRequest`, and
|
|
456
|
+
`FontSelectionCapabilities` in src/fonts/font_selection_types.rs, and
|
|
457
|
+
`FontSelectionAlgorithm` in src/fonts/font_selection_algorithm.rs, from
|
|
458
|
+
third_party/blink/renderer/platform/fonts/font_selection_types.h,
|
|
459
|
+
third_party/blink/renderer/platform/fonts/font_selection_types.cc, and
|
|
460
|
+
third_party/blink/renderer/platform/fonts/font_selection_algorithm.cc.
|
|
461
|
+
|
|
462
|
+
Copyright (C) 2017 Apple Inc. All rights reserved.
|
|
463
|
+
|
|
464
|
+
Redistribution and use in source and binary forms, with or without
|
|
465
|
+
modification, are permitted provided that the following conditions
|
|
466
|
+
are met:
|
|
467
|
+
1. Redistributions of source code must retain the above copyright
|
|
468
|
+
notice, this list of conditions and the following disclaimer.
|
|
469
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
470
|
+
notice, this list of conditions and the following disclaimer in the
|
|
471
|
+
documentation and/or other materials provided with the distribution.
|
|
472
|
+
|
|
473
|
+
THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
|
|
474
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
475
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
476
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
|
|
477
|
+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
478
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
479
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
480
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
481
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
482
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
483
|
+
THE POSSIBILITY OF SUCH DAMAGE.
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
9. The custom-property variable substitution in src/style/stylesheets_vars.rs,
|
|
487
|
+
the computed custom-property inheritance in src/style/custom_properties.rs,
|
|
488
|
+
and declaration staging in src/style/stylesheets.rs, adapted from
|
|
489
|
+
third_party/blink/renderer/core/css/resolver/style_cascade.cc,
|
|
490
|
+
third_party/blink/renderer/core/css/resolver/cascade_resolver.cc, and
|
|
491
|
+
third_party/blink/renderer/core/css/parser/css_variable_parser.cc.
|
|
492
|
+
src/style/stylesheets_tests.rs includes differential cases based on
|
|
493
|
+
third_party/blink/renderer/core/css/resolver/style_cascade_test.cc.
|
|
494
|
+
|
|
495
|
+
Copyright 2015-2020 The Chromium Authors.
|
|
496
|
+
|
|
497
|
+
Redistribution and use in source and binary forms, with or without
|
|
498
|
+
modification, are permitted provided that the following conditions are
|
|
499
|
+
met:
|
|
500
|
+
|
|
501
|
+
* Redistributions of source code must retain the above copyright
|
|
502
|
+
notice, this list of conditions and the following disclaimer.
|
|
503
|
+
* Redistributions in binary form must reproduce the above
|
|
504
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
505
|
+
in the documentation and/or other materials provided with the
|
|
506
|
+
distribution.
|
|
507
|
+
* Neither the name of Google LLC nor the names of its
|
|
508
|
+
contributors may be used to endorse or promote products derived from
|
|
509
|
+
this software without specific prior written permission.
|
|
510
|
+
|
|
511
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
512
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
513
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
514
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
515
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
516
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
517
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
518
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
519
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
520
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
521
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
## 2. tiny-skia
|
|
525
|
+
|
|
526
|
+
The anti-aliasing takumi renders with (`.skia_ss` in `src/raster/rasterizer.zig`, edge setup in
|
|
527
|
+
`src/raster/skia_aa.zig`, the blend pipeline in `src/raster/blend.zig`, fake-bold stroking) reproduces
|
|
528
|
+
[tiny-skia](https://github.com/linebender/tiny-skia), a Rust port of Skia, itself under the Skia license.
|
|
529
|
+
|
|
530
|
+
```text
|
|
531
|
+
Copyright (c) 2011 Google Inc. All rights reserved.
|
|
532
|
+
Copyright (c) 2020 Yevhenii Reizner All rights reserved.
|
|
533
|
+
|
|
534
|
+
Redistribution and use in source and binary forms, with or without
|
|
535
|
+
modification, are permitted provided that the following conditions are
|
|
536
|
+
met:
|
|
537
|
+
|
|
538
|
+
* Redistributions of source code must retain the above copyright
|
|
539
|
+
notice, this list of conditions and the following disclaimer.
|
|
540
|
+
|
|
541
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
542
|
+
notice, this list of conditions and the following disclaimer in
|
|
543
|
+
the documentation and/or other materials provided with the
|
|
544
|
+
distribution.
|
|
545
|
+
|
|
546
|
+
* Neither the name of the copyright holder nor the names of its
|
|
547
|
+
contributors may be used to endorse or promote products derived
|
|
548
|
+
from this software without specific prior written permission.
|
|
549
|
+
|
|
550
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
551
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
552
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
553
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
554
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
555
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
556
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
557
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
558
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
559
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
560
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
## 3. HarfBuzz
|
|
564
|
+
|
|
565
|
+
The OpenType layout engine and shapers (`src/font/ot.zig`, `shape.zig`, `normalize.zig`,
|
|
566
|
+
`shaper_arabic.zig`, `shaper_indic.zig`, the Indic category tables in `indic_data.zig`) are modelled on
|
|
567
|
+
and partly ported from [HarfBuzz](https://github.com/harfbuzz/harfbuzz).
|
|
568
|
+
|
|
569
|
+
```text
|
|
570
|
+
HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
|
|
571
|
+
|
|
572
|
+
Copyright © 2010-2022 Google, Inc.
|
|
573
|
+
Copyright © 2015-2020 Ebrahim Byagowi
|
|
574
|
+
Copyright © 2019,2020 Facebook, Inc.
|
|
575
|
+
Copyright © 2012,2015 Mozilla Foundation
|
|
576
|
+
Copyright © 2011 Codethink Limited
|
|
577
|
+
Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies)
|
|
578
|
+
Copyright © 2009 Keith Stribley
|
|
579
|
+
Copyright © 2011 Martin Hosken and SIL International
|
|
580
|
+
Copyright © 2007 Chris Wilson
|
|
581
|
+
Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod
|
|
582
|
+
Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc.
|
|
583
|
+
Copyright © 1998-2005 David Turner and Werner Lemberg
|
|
584
|
+
Copyright © 2016 Igalia S.L.
|
|
585
|
+
Copyright © 2022 Matthias Clasen
|
|
586
|
+
Copyright © 2018,2021 Khaled Hosny
|
|
587
|
+
Copyright © 2018,2019,2020 Adobe, Inc
|
|
588
|
+
Copyright © 2013-2015 Alexei Podtelezhnikov
|
|
589
|
+
|
|
590
|
+
For full copyright notices consult the individual files in the package.
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
Permission is hereby granted, without written agreement and without
|
|
594
|
+
license or royalty fees, to use, copy, modify, and distribute this
|
|
595
|
+
software and its documentation for any purpose, provided that the
|
|
596
|
+
above copyright notice and the following two paragraphs appear in
|
|
597
|
+
all copies of this software.
|
|
598
|
+
|
|
599
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
600
|
+
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
601
|
+
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
602
|
+
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
603
|
+
DAMAGE.
|
|
604
|
+
|
|
605
|
+
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
606
|
+
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
607
|
+
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
608
|
+
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
609
|
+
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
## 4. libwebp
|
|
613
|
+
|
|
614
|
+
The lossy WebP (VP8) decoder `src/codec/vp8.zig` is a bit-exact port of libwebp's decoder; the animated
|
|
615
|
+
WebP / GIF compositing in `src/codec/anim.zig` follows libwebp's `WebPAnimDecoder` / `anim_util`.
|
|
616
|
+
|
|
617
|
+
```text
|
|
618
|
+
Copyright (c) 2010, Google Inc. All rights reserved.
|
|
619
|
+
|
|
620
|
+
Redistribution and use in source and binary forms, with or without
|
|
621
|
+
modification, are permitted provided that the following conditions are
|
|
622
|
+
met:
|
|
623
|
+
|
|
624
|
+
* Redistributions of source code must retain the above copyright
|
|
625
|
+
notice, this list of conditions and the following disclaimer.
|
|
626
|
+
|
|
627
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
628
|
+
notice, this list of conditions and the following disclaimer in
|
|
629
|
+
the documentation and/or other materials provided with the
|
|
630
|
+
distribution.
|
|
631
|
+
|
|
632
|
+
* Neither the name of Google nor the names of its contributors may
|
|
633
|
+
be used to endorse or promote products derived from this software
|
|
634
|
+
without specific prior written permission.
|
|
635
|
+
|
|
636
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
637
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
638
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
639
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
640
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
641
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
642
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
643
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
644
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
645
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
646
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
libwebp is also accompanied by Google's "Additional IP Rights Grant (Patents)" for the WebM project:
|
|
650
|
+
https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/PATENTS
|
|
651
|
+
|
|
652
|
+
## 5. Independent JPEG Group
|
|
653
|
+
|
|
654
|
+
The JPEG encoder and decoder (`src/codec/jpeg_enc.zig`, `src/codec/jpeg_dec.zig`) implement libjpeg's
|
|
655
|
+
"islow" integer DCTs (`jfdctint.c`, `jidctint.c`), the IJG quality scaling and "fancy" upsampling.
|
|
656
|
+
|
|
657
|
+
This software is based in part on the work of the Independent JPEG Group.
|
|
658
|
+
|
|
659
|
+
## 6. Unicode data and algorithms
|
|
660
|
+
|
|
661
|
+
The tables `src/font/ucd.zig`, `nfdata.zig`, `indic_data.zig` and `color_emoji_tables.zig` are generated
|
|
662
|
+
from the Unicode Character Database (16.0) and `emoji-data.txt` (17.0); bidi follows UAX #9 and ICU
|
|
663
|
+
(`adjustWSLevels` in `ubidi.cpp`, via takumi); line breaking follows UAX #14 as implemented by ICU4X.
|
|
664
|
+
|
|
665
|
+
```text
|
|
666
|
+
UNICODE LICENSE V3
|
|
667
|
+
|
|
668
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
669
|
+
|
|
670
|
+
Copyright © 1991-2026 Unicode, Inc.
|
|
671
|
+
|
|
672
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
673
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
674
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
675
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
676
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
677
|
+
|
|
678
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
679
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
680
|
+
software and any associated documentation (the "Software") to deal in the
|
|
681
|
+
Data Files or Software without restriction, including without limitation
|
|
682
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
683
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
684
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
685
|
+
this copyright and permission notice appear with all copies of the Data
|
|
686
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
687
|
+
associated Documentation.
|
|
688
|
+
|
|
689
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
690
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
691
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
692
|
+
THIRD PARTY RIGHTS.
|
|
693
|
+
|
|
694
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
695
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
696
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
697
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
698
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
699
|
+
FILES OR SOFTWARE.
|
|
700
|
+
|
|
701
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
702
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
703
|
+
dealings in these Data Files or Software without prior written
|
|
704
|
+
authorization of the copyright holder.
|
|
705
|
+
|
|
706
|
+
SPDX-License-Identifier: Unicode-3.0
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
## 7. emoji-segmenter
|
|
710
|
+
|
|
711
|
+
The emoji presentation scanner in `src/font/color_emoji.zig` follows takumi's
|
|
712
|
+
`emoji_presentation_scanner.rs`, a hand-written form of the grammar in
|
|
713
|
+
[emoji-segmenter](https://github.com/google/emoji-segmenter)'s `emoji_presentation_scanner.rl`.
|
|
714
|
+
|
|
715
|
+
```text
|
|
716
|
+
Copyright 2019 Google LLC
|
|
717
|
+
|
|
718
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
719
|
+
you may not use this file except in compliance with the License.
|
|
720
|
+
You may obtain a copy of the License at
|
|
721
|
+
|
|
722
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
723
|
+
|
|
724
|
+
Unless required by applicable law or agreed to in writing, software
|
|
725
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
726
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
727
|
+
See the License for the specific language governing permissions and
|
|
728
|
+
limitations under the License.
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
The full Apache License 2.0 text is in the appendix at the end of this file.
|
|
732
|
+
|
|
733
|
+
## 8. Brotli
|
|
734
|
+
|
|
735
|
+
The WOFF2 decoder (`src/woff/brotli.zig`, compiled into the standard and full engines and into
|
|
736
|
+
`bm_woff.wasm`) embeds the 122,784-byte Brotli static dictionary and transform tables of RFC 7932 /
|
|
737
|
+
[google/brotli](https://github.com/google/brotli).
|
|
738
|
+
|
|
739
|
+
```text
|
|
740
|
+
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
|
741
|
+
|
|
742
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
743
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
744
|
+
in the Software without restriction, including without limitation the rights
|
|
745
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
746
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
747
|
+
furnished to do so, subject to the following conditions:
|
|
748
|
+
|
|
749
|
+
The above copyright notice and this permission notice shall be included in
|
|
750
|
+
all copies or substantial portions of the Software.
|
|
751
|
+
|
|
752
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
753
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
754
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
755
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
756
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
757
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
758
|
+
THE SOFTWARE.
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
## 9. Taffy
|
|
762
|
+
|
|
763
|
+
The flexbox algorithm (`src/layout/flex.zig`) and parts of the layout tree helpers are structured after
|
|
764
|
+
[Taffy](https://github.com/DioxusLabs/taffy), the layout library takumi uses.
|
|
765
|
+
|
|
766
|
+
```text
|
|
767
|
+
MIT License
|
|
768
|
+
|
|
769
|
+
Copyright (c) 2018 Visly Inc.
|
|
770
|
+
|
|
771
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
772
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
773
|
+
in the Software without restriction, including without limitation the rights
|
|
774
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
775
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
776
|
+
furnished to do so, subject to the following conditions:
|
|
777
|
+
|
|
778
|
+
The above copyright notice and this permission notice shall be included in
|
|
779
|
+
all copies or substantial portions of the Software.
|
|
780
|
+
|
|
781
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
782
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
783
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
784
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
785
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
786
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
787
|
+
THE SOFTWARE.
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
## 10. krilla
|
|
791
|
+
|
|
792
|
+
The PDF output (`src/pdf/`, the `pdf` build profile) is a port of takumi's `takumi-pdf`, which vendors
|
|
793
|
+
[krilla](https://github.com/LaurenzV/krilla) 0.8.2 (MIT OR Apache-2.0). The drawing model and content-stream
|
|
794
|
+
operators (`emit_surface.zig`, `content.zig`), the CID and Type 3 font handling (`font_embed.zig`,
|
|
795
|
+
`font_objects.zig`, `type3.zig`, `text.zig`), the tagged-PDF serialisation (`tags.zig`, `tagdoc.zig`), the
|
|
796
|
+
PDF/A and PDF/UA validators and ICC handling (`conform.zig`) and the document, outline, annotation and metadata
|
|
797
|
+
parts (`interactive.zig`, `metadata.zig`, `attach.zig`) follow krilla's Rust sources and byte layout. The copy of
|
|
798
|
+
krilla that takumi vendors carries this notice (the MIT licence text of krilla's authors):
|
|
799
|
+
|
|
800
|
+
```text
|
|
801
|
+
MIT License
|
|
802
|
+
|
|
803
|
+
Copyright (c) 2024 Laurenz Stampfl
|
|
804
|
+
|
|
805
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
806
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
807
|
+
in the Software without restriction, including without limitation the rights
|
|
808
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
809
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
810
|
+
furnished to do so, subject to the following conditions:
|
|
811
|
+
|
|
812
|
+
The above copyright notice and this permission notice shall be included in all
|
|
813
|
+
copies or substantial portions of the Software.
|
|
814
|
+
|
|
815
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
816
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
817
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
818
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
819
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
820
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
821
|
+
SOFTWARE.
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
krilla 0.8.2 also ships this acknowledgement of code it takes from other projects. bm-render's Zig files follow
|
|
825
|
+
krilla's structure and can contain translations of the parts named here:
|
|
826
|
+
|
|
827
|
+
- [`resvg`](https://github.com/RazrFalcon/resvg), available under the Mozilla Public License 2.0
|
|
828
|
+
(<https://www.mozilla.org/MPL/2.0/>): the `content_draw_path` method of krilla.
|
|
829
|
+
- [`typst`](https://github.com/typst/typst), Apache License 2.0: the `GroupByKey` struct, the `SliceExt` trait, the
|
|
830
|
+
`Prehashed` struct, the implementation of `SipHashable`, the implementation of writing CID-keyed fonts and of
|
|
831
|
+
writing PDF metadata.
|
|
832
|
+
- [`svg2pdf`](https://github.com/typst/svg2pdf), Apache License 2.0: krilla's SVG conversion (bm-render's SVG-to-PDF
|
|
833
|
+
path, `emit_svg.zig`, follows takumi-pdf's `svg.rs`, not this code).
|
|
834
|
+
- [`vello`](https://github.com/linebender/vello), Apache License 2.0: the logic for bitmap glyphs.
|
|
835
|
+
|
|
836
|
+
The full Apache License 2.0 text is in the appendix at the end of this file.
|
|
837
|
+
|
|
838
|
+
## 11. subsetter (with ttf-parser and fonttools)
|
|
839
|
+
|
|
840
|
+
The font subsetter (`src/pdf/subset.zig`, `subset_cff.zig`) is a port of the
|
|
841
|
+
[subsetter](https://github.com/typst/subsetter) crate 0.2.6, vendored in takumi-pdf, including its
|
|
842
|
+
`variable-fonts` feature. subsetter's notice (MIT) and the notices for the code it takes from other projects:
|
|
843
|
+
|
|
844
|
+
```text
|
|
845
|
+
MIT License
|
|
846
|
+
|
|
847
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
848
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
849
|
+
in the Software without restriction, including without limitation the rights
|
|
850
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
851
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
852
|
+
furnished to do so, subject to the following conditions:
|
|
853
|
+
|
|
854
|
+
The above copyright notice and this permission notice shall be included in all
|
|
855
|
+
copies or substantial portions of the Software.
|
|
856
|
+
|
|
857
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
858
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
859
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
860
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
861
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
862
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
863
|
+
SOFTWARE.
|
|
864
|
+
```
|
|
865
|
+
|
|
866
|
+
ttf-parser: code from [ttf-parser](https://github.com/RazrFalcon/ttf-parser) was used or adapted in subsetter for
|
|
867
|
+
its Reader, Writer, `LazyArray16` and `LazyArray16Iter`, the `name` and `hmtx` table parsing, and most of the `cff`
|
|
868
|
+
parsing logic (`calc_subroutine_bias`, `SIDMetadata`, `CIDMetadata`, `RealNumber`, `Index`, `IndexSize`,
|
|
869
|
+
`OffsetSize`, `FDSelect`, `ArgumentStack`, the Top DICT and Font DICT, `DictionaryParser`).
|
|
870
|
+
|
|
871
|
+
```text
|
|
872
|
+
MIT License
|
|
873
|
+
|
|
874
|
+
Copyright (c) 2018 Yevhenii Reizner
|
|
875
|
+
|
|
876
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
877
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
878
|
+
in the Software without restriction, including without limitation the rights
|
|
879
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
880
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
881
|
+
furnished to do so, subject to the following conditions:
|
|
882
|
+
|
|
883
|
+
The above copyright notice and this permission notice shall be included in
|
|
884
|
+
all copies or substantial portions of the Software.
|
|
885
|
+
|
|
886
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
887
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
888
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
889
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
890
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
891
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
892
|
+
SOFTWARE.
|
|
893
|
+
```
|
|
894
|
+
|
|
895
|
+
fonttools: code from [fonttools](https://github.com/fonttools/fonttools) was used or adapted in subsetter for the
|
|
896
|
+
charstring `Decompiler`.
|
|
897
|
+
|
|
898
|
+
```text
|
|
899
|
+
MIT License
|
|
900
|
+
|
|
901
|
+
Copyright (c) 2017 Just van Rossum
|
|
902
|
+
|
|
903
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
904
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
905
|
+
in the Software without restriction, including without limitation the rights
|
|
906
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
907
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
908
|
+
furnished to do so, subject to the following conditions:
|
|
909
|
+
|
|
910
|
+
The above copyright notice and this permission notice shall be included in all
|
|
911
|
+
copies or substantial portions of the Software.
|
|
912
|
+
|
|
913
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
914
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
915
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
916
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
917
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
918
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
919
|
+
SOFTWARE.
|
|
920
|
+
```
|
|
921
|
+
|
|
922
|
+
## 12. pdf-writer and xmp-writer
|
|
923
|
+
|
|
924
|
+
The PDF object model and file serialisation in `src/pdf/writer.zig` follow
|
|
925
|
+
[pdf-writer](https://github.com/typst/pdf-writer) 0.15, and the XMP packet in `src/pdf/metadata.zig` follows
|
|
926
|
+
[xmp-writer](https://github.com/typst/xmp-writer) 0.3, the two crates takumi-pdf (through krilla) builds on. Both
|
|
927
|
+
are published by their authors (the Typst project) under MIT OR Apache-2.0; bm-render follows their structure and
|
|
928
|
+
byte layout and carries no copy of them. The Apache License 2.0 text is in the
|
|
929
|
+
appendix at the end of this file.
|
|
930
|
+
|
|
931
|
+
## 13. Compact ICC Profiles (sRGB v4)
|
|
932
|
+
|
|
933
|
+
`src/pdf/srgb-v4.icc` (480 bytes), embedded in PDF/A output as the sRGB colour space and output intent, is the
|
|
934
|
+
sRGB v4 profile of [Compact ICC Profiles](https://github.com/saucecontrol/Compact-ICC-Profiles) by Clinton Ingram
|
|
935
|
+
(saucecontrol), as shipped with takumi-pdf (`icc/sRGB-v4.icc`). The profile is released under
|
|
936
|
+
[CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) (public domain dedication; the profile's
|
|
937
|
+
copyright tag reads "CC0"). No attribution is required; it is given here as credit.
|
|
938
|
+
|
|
939
|
+
## 14. Geist
|
|
940
|
+
|
|
941
|
+
The PDF builds (`js/bm_render.pdf.wasm` and the native addon) embed `geist-latin-wght-300-800.ttf`, the
|
|
942
|
+
Latin subset of Geist that takumi-pdf embeds as its last-resort font, unmodified
|
|
943
|
+
(src/pdf/geist/geist-latin-wght-300-800.ttf). Copyright 2024 The Geist Project Authors
|
|
944
|
+
(https://github.com/vercel/geist-font). Licensed under the SIL Open Font License, Version 1.1; the
|
|
945
|
+
license text follows (also in src/pdf/geist/OFL.txt).
|
|
946
|
+
|
|
947
|
+
```
|
|
948
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
949
|
+
-----------------------------------------------------------
|
|
950
|
+
|
|
951
|
+
PREAMBLE
|
|
952
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
953
|
+
development of collaborative font projects, to support the font creation
|
|
954
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
955
|
+
open framework in which fonts may be shared and improved in partnership
|
|
956
|
+
with others.
|
|
957
|
+
|
|
958
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
959
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
960
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
961
|
+
redistributed and/or sold with any software provided that any reserved
|
|
962
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
963
|
+
however, cannot be released under any other type of license. The
|
|
964
|
+
requirement for fonts to remain under this license does not apply
|
|
965
|
+
to any document created using the fonts or their derivatives.
|
|
966
|
+
|
|
967
|
+
DEFINITIONS
|
|
968
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
969
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
970
|
+
include source files, build scripts and documentation.
|
|
971
|
+
|
|
972
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
973
|
+
copyright statement(s).
|
|
974
|
+
|
|
975
|
+
"Original Version" refers to the collection of Font Software components as
|
|
976
|
+
distributed by the Copyright Holder(s).
|
|
977
|
+
|
|
978
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
979
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
980
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
981
|
+
new environment.
|
|
982
|
+
|
|
983
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
984
|
+
writer or other person who contributed to the Font Software.
|
|
985
|
+
|
|
986
|
+
PERMISSION & CONDITIONS
|
|
987
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
988
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
989
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
990
|
+
Software, subject to the following conditions:
|
|
991
|
+
|
|
992
|
+
1) Neither the Font Software nor any of its individual components,
|
|
993
|
+
in Original or Modified Versions, may be sold by itself.
|
|
994
|
+
|
|
995
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
996
|
+
redistributed and/or sold with any software, provided that each copy
|
|
997
|
+
contains the above copyright notice and this license. These can be
|
|
998
|
+
included either as stand-alone text files, human-readable headers or
|
|
999
|
+
in the appropriate machine-readable metadata fields within text or
|
|
1000
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
1001
|
+
|
|
1002
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
1003
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
1004
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
1005
|
+
presented to the users.
|
|
1006
|
+
|
|
1007
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
1008
|
+
Software shall not be used to promote, endorse or advertise any
|
|
1009
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
1010
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
1011
|
+
permission.
|
|
1012
|
+
|
|
1013
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
1014
|
+
must be distributed entirely under this license, and must not be
|
|
1015
|
+
distributed under any other license. The requirement for fonts to
|
|
1016
|
+
remain under this license does not apply to any document created
|
|
1017
|
+
using the Font Software.
|
|
1018
|
+
|
|
1019
|
+
TERMINATION
|
|
1020
|
+
This license becomes null and void if any of the above conditions are
|
|
1021
|
+
not met.
|
|
1022
|
+
|
|
1023
|
+
DISCLAIMER
|
|
1024
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
1025
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
1026
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
1027
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
1028
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
1029
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
1030
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
1031
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
1032
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
1033
|
+
```
|
|
1034
|
+
|
|
1035
|
+
## Acknowledgements (behaviour matched; no code or data taken)
|
|
1036
|
+
|
|
1037
|
+
- kurbo: the cubic-to-quadratic conversion used when the PDF font subsetter instances variable glyphs
|
|
1038
|
+
(`src/pdf/subset.zig`) uses the same tolerance and splitting rule as kurbo's `to_quads(0.025)`.
|
|
1039
|
+
- Blink (LayoutNG) fragmentation, through takumi-core: `src/layout/fragment.zig` follows the break rules of
|
|
1040
|
+
`fragmentation_utils.cc` and `block_layout_algorithm.cc`; Blink's notice is in section 1.
|
|
1041
|
+
- skrifa / FreeType: CFF and variable-font outline arithmetic is written to give identical results.
|
|
1042
|
+
- zlib / miniz: DEFLATE encoder heuristics (lazy matching, `TOO_FAR`, Huffman length limiting).
|
|
1043
|
+
- jpeg-encoder (the Rust crate takumi uses): two-pass optimised Huffman tables.
|
|
1044
|
+
- HTML named character references (WHATWG), via takumi's table in `src/html/entity_data.zig`.
|
|
1045
|
+
|
|
1046
|
+
## Appendix: Apache License 2.0
|
|
1047
|
+
|
|
1048
|
+
The full text of the Apache License 2.0, referenced by sections 7, 10 and 12 above. It applies to those
|
|
1049
|
+
third-party components only; bm-render itself is licensed under the MIT License (`LICENSE`).
|
|
1050
|
+
|
|
1051
|
+
```text
|
|
1052
|
+
Apache License
|
|
1053
|
+
Version 2.0, January 2004
|
|
1054
|
+
http://www.apache.org/licenses/
|
|
1055
|
+
|
|
1056
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
1057
|
+
|
|
1058
|
+
1. Definitions.
|
|
1059
|
+
|
|
1060
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
1061
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
1062
|
+
|
|
1063
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
1064
|
+
the copyright owner that is granting the License.
|
|
1065
|
+
|
|
1066
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
1067
|
+
other entities that control, are controlled by, or are under common
|
|
1068
|
+
control with that entity. For the purposes of this definition,
|
|
1069
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
1070
|
+
direction or management of such entity, whether by contract or
|
|
1071
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
1072
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
1073
|
+
|
|
1074
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
1075
|
+
exercising permissions granted by this License.
|
|
1076
|
+
|
|
1077
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
1078
|
+
including but not limited to software source code, documentation
|
|
1079
|
+
source, and configuration files.
|
|
1080
|
+
|
|
1081
|
+
"Object" form shall mean any form resulting from mechanical
|
|
1082
|
+
transformation or translation of a Source form, including but
|
|
1083
|
+
not limited to compiled object code, generated documentation,
|
|
1084
|
+
and conversions to other media types.
|
|
1085
|
+
|
|
1086
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
1087
|
+
Object form, made available under the License, as indicated by a
|
|
1088
|
+
copyright notice that is included in or attached to the work
|
|
1089
|
+
(an example is provided in the Appendix below).
|
|
1090
|
+
|
|
1091
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
1092
|
+
form, that is based on (or derived from) the Work and for which the
|
|
1093
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
1094
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
1095
|
+
of this License, Derivative Works shall not include works that remain
|
|
1096
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
1097
|
+
the Work and Derivative Works thereof.
|
|
1098
|
+
|
|
1099
|
+
"Contribution" shall mean any work of authorship, including
|
|
1100
|
+
the original version of the Work and any modifications or additions
|
|
1101
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
1102
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
1103
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
1104
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
1105
|
+
means any form of electronic, verbal, or written communication sent
|
|
1106
|
+
to the Licensor or its representatives, including but not limited to
|
|
1107
|
+
communication on electronic mailing lists, source code control systems,
|
|
1108
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
1109
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
1110
|
+
excluding communication that is conspicuously marked or otherwise
|
|
1111
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
1112
|
+
|
|
1113
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
1114
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
1115
|
+
subsequently incorporated within the Work.
|
|
1116
|
+
|
|
1117
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
1118
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
1119
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
1120
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
1121
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
1122
|
+
Work and such Derivative Works in Source or Object form.
|
|
1123
|
+
|
|
1124
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
1125
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
1126
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
1127
|
+
(except as stated in this section) patent license to make, have made,
|
|
1128
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
1129
|
+
where such license applies only to those patent claims licensable
|
|
1130
|
+
by such Contributor that are necessarily infringed by their
|
|
1131
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
1132
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
1133
|
+
institute patent litigation against any entity (including a
|
|
1134
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
1135
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
1136
|
+
or contributory patent infringement, then any patent licenses
|
|
1137
|
+
granted to You under this License for that Work shall terminate
|
|
1138
|
+
as of the date such litigation is filed.
|
|
1139
|
+
|
|
1140
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
1141
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
1142
|
+
modifications, and in Source or Object form, provided that You
|
|
1143
|
+
meet the following conditions:
|
|
1144
|
+
|
|
1145
|
+
(a) You must give any other recipients of the Work or
|
|
1146
|
+
Derivative Works a copy of this License; and
|
|
1147
|
+
|
|
1148
|
+
(b) You must cause any modified files to carry prominent notices
|
|
1149
|
+
stating that You changed the files; and
|
|
1150
|
+
|
|
1151
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
1152
|
+
that You distribute, all copyright, patent, trademark, and
|
|
1153
|
+
attribution notices from the Source form of the Work,
|
|
1154
|
+
excluding those notices that do not pertain to any part of
|
|
1155
|
+
the Derivative Works; and
|
|
1156
|
+
|
|
1157
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
1158
|
+
distribution, then any Derivative Works that You distribute must
|
|
1159
|
+
include a readable copy of the attribution notices contained
|
|
1160
|
+
within such NOTICE file, excluding those notices that do not
|
|
1161
|
+
pertain to any part of the Derivative Works, in at least one
|
|
1162
|
+
of the following places: within a NOTICE text file distributed
|
|
1163
|
+
as part of the Derivative Works; within the Source form or
|
|
1164
|
+
documentation, if provided along with the Derivative Works; or,
|
|
1165
|
+
within a display generated by the Derivative Works, if and
|
|
1166
|
+
wherever such third-party notices normally appear. The contents
|
|
1167
|
+
of the NOTICE file are for informational purposes only and
|
|
1168
|
+
do not modify the License. You may add Your own attribution
|
|
1169
|
+
notices within Derivative Works that You distribute, alongside
|
|
1170
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
1171
|
+
that such additional attribution notices cannot be construed
|
|
1172
|
+
as modifying the License.
|
|
1173
|
+
|
|
1174
|
+
You may add Your own copyright statement to Your modifications and
|
|
1175
|
+
may provide additional or different license terms and conditions
|
|
1176
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
1177
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
1178
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
1179
|
+
the conditions stated in this License.
|
|
1180
|
+
|
|
1181
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
1182
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
1183
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
1184
|
+
this License, without any additional terms or conditions.
|
|
1185
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
1186
|
+
the terms of any separate license agreement you may have executed
|
|
1187
|
+
with Licensor regarding such Contributions.
|
|
1188
|
+
|
|
1189
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
1190
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
1191
|
+
except as required for reasonable and customary use in describing the
|
|
1192
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
1193
|
+
|
|
1194
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
1195
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
1196
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
1197
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
1198
|
+
implied, including, without limitation, any warranties or conditions
|
|
1199
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
1200
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
1201
|
+
appropriateness of using or redistributing the Work and assume any
|
|
1202
|
+
risks associated with Your exercise of permissions under this License.
|
|
1203
|
+
|
|
1204
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
1205
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
1206
|
+
unless required by applicable law (such as deliberate and grossly
|
|
1207
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
1208
|
+
liable to You for damages, including any direct, indirect, special,
|
|
1209
|
+
incidental, or consequential damages of any character arising as a
|
|
1210
|
+
result of this License or out of the use or inability to use the
|
|
1211
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
1212
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
1213
|
+
other commercial damages or losses), even if such Contributor
|
|
1214
|
+
has been advised of the possibility of such damages.
|
|
1215
|
+
|
|
1216
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
1217
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
1218
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
1219
|
+
or other liability obligations and/or rights consistent with this
|
|
1220
|
+
License. However, in accepting such obligations, You may act only
|
|
1221
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
1222
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
1223
|
+
defend, and hold each Contributor harmless for any liability
|
|
1224
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
1225
|
+
of your accepting any such warranty or additional liability.
|
|
1226
|
+
|
|
1227
|
+
END OF TERMS AND CONDITIONS
|
|
1228
|
+
```
|