| 1 | // Copyright 2016 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | /* |
| 6 | Package iconvg implements a compact, binary format for simple vector graphics: |
| 7 | icons, logos, glyphs and emoji. |
| 8 | |
| 9 | WARNING: THIS FORMAT IS EXPERIMENTAL AND SUBJECT TO INCOMPATIBLE CHANGES. |
| 10 | |
| 11 | A longer overview is at |
| 12 | https://github.com/google/iconvg |
| 13 | |
| 14 | The file format is specified at |
| 15 | https://github.com/google/iconvg/blob/main/spec/iconvg-spec.md |
| 16 | |
| 17 | This package's encoder emits byte-identical output for the same input, |
| 18 | independent of the platform (and specifically its floating-point hardware). |
| 19 | */ |
| 20 | package iconvg |
| 21 | |
| 22 | // TODO: shapes (circles, rects) and strokes? Or can we assume that authoring |
| 23 | // tools will convert shapes and strokes to paths? |
| 24 | |
| 25 | // TODO: mark somehow that a graphic (such as a back arrow) should be flipped |
| 26 | // horizontally or its paths otherwise varied when presented in a Right-To-Left |
| 27 | // context, such as among Arabic and Hebrew text? Or should that be the |
| 28 | // responsibility of higher layers, selecting different IconVG graphics based |
| 29 | // on context, the way they would select different PNG graphics. |
| 30 | |
| 31 | // TODO: hinting? |