doc.go 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. Package iconvg implements a compact, binary format for simple vector graphics:
  6. icons, logos, glyphs and emoji.
  7. WARNING: THIS FORMAT IS EXPERIMENTAL AND SUBJECT TO INCOMPATIBLE CHANGES.
  8. A longer overview is at
  9. https://github.com/google/iconvg
  10. The file format is specified at
  11. https://github.com/google/iconvg/blob/main/spec/iconvg-spec.md
  12. This package's encoder emits byte-identical output for the same input,
  13. independent of the platform (and specifically its floating-point hardware).
  14. */
  15. package iconvg
  16. // TODO: shapes (circles, rects) and strokes? Or can we assume that authoring
  17. // tools will convert shapes and strokes to paths?
  18. // TODO: mark somehow that a graphic (such as a back arrow) should be flipped
  19. // horizontally or its paths otherwise varied when presented in a Right-To-Left
  20. // context, such as among Arabic and Hebrew text? Or should that be the
  21. // responsibility of higher layers, selecting different IconVG graphics based
  22. // on context, the way they would select different PNG graphics.
  23. // TODO: hinting?