From 2df023c4ef23389332d4ecf59cb51aafeceffd1a Mon Sep 17 00:00:00 2001 From: Bastien Dejean Date: Wed, 2 Aug 2017 18:33:14 +0200 Subject: [PATCH] Use SVG icons mupdf can render SVG. We'll use mupdf to render icons. --- icons/angle-down.svg | 1 + icons/angle-left.svg | 1 + icons/angle-right.svg | 1 + icons/angle-up.svg | 1 + icons/arrow-down.svg | 1 + icons/arrow-left.svg | 1 + icons/arrow-right.svg | 1 + icons/arrow-up.svg | 1 + icons/build | 23 ------ icons/bullet.svg | 1 + icons/check_mark.svg | 1 + icons/delete-backward.svg | 1 + icons/delete-forward.svg | 1 + icons/double_angle-left.svg | 1 + icons/double_angle-right.svg | 1 + icons/frontlight.svg | 1 + icons/glyphs.json | 18 ----- icons/home.svg | 1 + icons/icons.ttf | Bin 3612 -> 0 bytes icons/index.html | 11 --- icons/menu.svg | 1 + icons/move-backward.svg | 1 + icons/move-forward.svg | 1 + icons/redo.svg | 1 + icons/search.svg | 1 + icons/style.css | 17 ----- icons/svg/angle-down.svg | 113 ---------------------------- icons/svg/angle-left.svg | 113 ---------------------------- icons/svg/angle-right.svg | 113 ---------------------------- icons/svg/angle-up.svg | 113 ---------------------------- icons/svg/arrow-down.svg | 113 ---------------------------- icons/svg/arrow-left.svg | 113 ---------------------------- icons/svg/arrow-right.svg | 113 ---------------------------- icons/svg/arrow-up.svg | 113 ---------------------------- icons/svg/double_angle-left.svg | 122 ------------------------------- icons/svg/double_angle-right.svg | 122 ------------------------------- icons/svg/frontlight.svg | 113 ---------------------------- icons/svg/home.svg | 116 ----------------------------- icons/svg/menu.svg | 113 ---------------------------- icons/svg/redo.svg | 115 ----------------------------- icons/svg/search.svg | 115 ----------------------------- icons/svg/undo.svg | 113 ---------------------------- icons/undo.svg | 1 + 43 files changed, 22 insertions(+), 1902 deletions(-) create mode 100644 icons/angle-down.svg create mode 100644 icons/angle-left.svg create mode 100644 icons/angle-right.svg create mode 100644 icons/angle-up.svg create mode 100644 icons/arrow-down.svg create mode 100644 icons/arrow-left.svg create mode 100644 icons/arrow-right.svg create mode 100644 icons/arrow-up.svg delete mode 100755 icons/build create mode 100644 icons/bullet.svg create mode 100644 icons/check_mark.svg create mode 100644 icons/delete-backward.svg create mode 100644 icons/delete-forward.svg create mode 100644 icons/double_angle-left.svg create mode 100644 icons/double_angle-right.svg create mode 100644 icons/frontlight.svg delete mode 100644 icons/glyphs.json create mode 100644 icons/home.svg delete mode 100644 icons/icons.ttf delete mode 100644 icons/index.html create mode 100644 icons/menu.svg create mode 100644 icons/move-backward.svg create mode 100644 icons/move-forward.svg create mode 100644 icons/redo.svg create mode 100644 icons/search.svg delete mode 100644 icons/style.css delete mode 100644 icons/svg/angle-down.svg delete mode 100644 icons/svg/angle-left.svg delete mode 100644 icons/svg/angle-right.svg delete mode 100644 icons/svg/angle-up.svg delete mode 100644 icons/svg/arrow-down.svg delete mode 100644 icons/svg/arrow-left.svg delete mode 100644 icons/svg/arrow-right.svg delete mode 100644 icons/svg/arrow-up.svg delete mode 100644 icons/svg/double_angle-left.svg delete mode 100644 icons/svg/double_angle-right.svg delete mode 100644 icons/svg/frontlight.svg delete mode 100644 icons/svg/home.svg delete mode 100644 icons/svg/menu.svg delete mode 100644 icons/svg/redo.svg delete mode 100644 icons/svg/search.svg delete mode 100644 icons/svg/undo.svg create mode 100644 icons/undo.svg diff --git a/icons/angle-down.svg b/icons/angle-down.svg new file mode 100644 index 0000000..6c5896d --- /dev/null +++ b/icons/angle-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/angle-left.svg b/icons/angle-left.svg new file mode 100644 index 0000000..ccd7d04 --- /dev/null +++ b/icons/angle-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/angle-right.svg b/icons/angle-right.svg new file mode 100644 index 0000000..0d40a9d --- /dev/null +++ b/icons/angle-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/angle-up.svg b/icons/angle-up.svg new file mode 100644 index 0000000..0fdb3ef --- /dev/null +++ b/icons/angle-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-down.svg b/icons/arrow-down.svg new file mode 100644 index 0000000..6c5b4f2 --- /dev/null +++ b/icons/arrow-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-left.svg b/icons/arrow-left.svg new file mode 100644 index 0000000..14df976 --- /dev/null +++ b/icons/arrow-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-right.svg b/icons/arrow-right.svg new file mode 100644 index 0000000..0d84b9c --- /dev/null +++ b/icons/arrow-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-up.svg b/icons/arrow-up.svg new file mode 100644 index 0000000..af01bb7 --- /dev/null +++ b/icons/arrow-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/build b/icons/build deleted file mode 100755 index c31d7c6..0000000 --- a/icons/build +++ /dev/null @@ -1,23 +0,0 @@ -#! /usr/bin/env python2 -# -*- coding: utf-8 -*- - -import json -import fontforge - -font = fontforge.font() -font.fontname = "Icons" -font.familyname = font.fontname -font.em = 2048 -font.ascent = 1024 -font.descent = 1024 -index = {} - -with open("glyphs.json") as f: - index = json.load(f) - -for c, path in index.items(): - print("{} {}".format(c, path)) - glyph = font.createChar(ord(c)) - glyph.importOutlines(path) - -font.generate("icons.ttf") diff --git a/icons/bullet.svg b/icons/bullet.svg new file mode 100644 index 0000000..f221221 --- /dev/null +++ b/icons/bullet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/check_mark.svg b/icons/check_mark.svg new file mode 100644 index 0000000..79f2376 --- /dev/null +++ b/icons/check_mark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/delete-backward.svg b/icons/delete-backward.svg new file mode 100644 index 0000000..4cee0b0 --- /dev/null +++ b/icons/delete-backward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/delete-forward.svg b/icons/delete-forward.svg new file mode 100644 index 0000000..9525901 --- /dev/null +++ b/icons/delete-forward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/double_angle-left.svg b/icons/double_angle-left.svg new file mode 100644 index 0000000..98a31c6 --- /dev/null +++ b/icons/double_angle-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/double_angle-right.svg b/icons/double_angle-right.svg new file mode 100644 index 0000000..716da87 --- /dev/null +++ b/icons/double_angle-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/frontlight.svg b/icons/frontlight.svg new file mode 100644 index 0000000..ed95be3 --- /dev/null +++ b/icons/frontlight.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/glyphs.json b/icons/glyphs.json deleted file mode 100644 index b350cd9..0000000 --- a/icons/glyphs.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "m": "svg/menu.svg", - "h": "svg/home.svg", - "s": "svg/search.svg", - "f": "svg/frontlight.svg", - "l": "svg/arrow-left.svg", - "r": "svg/arrow-right.svg", - "u": "svg/arrow-up.svg", - "d": "svg/arrow-down.svg", - "L": "svg/angle-left.svg", - "R": "svg/angle-right.svg", - "U": "svg/angle-up.svg", - "D": "svg/angle-down.svg", - "p": "svg/double_angle-left.svg", - "n": "svg/double_angle-right.svg", - "i": "svg/undo.svg", - "o": "svg/redo.svg" -} diff --git a/icons/home.svg b/icons/home.svg new file mode 100644 index 0000000..f4e3c28 --- /dev/null +++ b/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/icons.ttf b/icons/icons.ttf deleted file mode 100644 index a3fcc6c2782e9b64ce4692f55e325fe8794cf239..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3612 zcmZQzWME+6WoTevW(aU|3-PUA6wJZEz{kMAz#!uvtZ$V1Gn32Ll8590mp^ z;e!0)5=LL9Ees628yFZEJivZqWMHWLds#7_-{va=HwVaH3|B+j7J(R7L)(@xxcq5g zpTPp+axgG~CQ4GcRV>e*+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+%e%aXr+7(z^#WgfVEK`8}6Z39?bDl#xIf{H6fMI}BaQEU>OIu$as~(i;LQSY*I4{kI()k7)j7 z1QpTHQdS+DW{ku{koe5sKt6>Q(tMy|o8=d}2opxBh*B(rW0(Oo{TLV)I?2PkCA03 z3$s;MorYaRgq>VuV!F1^e(Qe{ATKk%FmMgG6Vx#>voJSTWoC9?W2|VQsA!>RyvAL> zAkEoA!QI$!CDQ>7S53Ps8?M;NS!hVO8vc_2MG)f)>;1mrSL_6pWTiy-ITPHC71Ijh z3epsfJQOXQ(hBrF))*PNgYp0)qX|;o0WEnLp+zm!4=fCzT0#~r8!;<@Y83P^lTqhq zsstI#z{ju--kMTkaD%cL8CV%gp=>4wc7|>!o0&m{;VzWT!obNW24%A{2rxQ9*=!7~ zjPanB9}B4c32H+!GcdAnGB7f5F=Rr;nHcyOs-bLV1`meGP&NyL5F-o;kGdMHkGZZjXG88dnGNdzPFqAMTFlaC&GiWj>Fc>iyFc>nJGw3iVFgP(JG88kE zFk~{MGUPERFt{+JGGsBNG9)tOF)%pi7gQEyre~BWXe4VY7#SFv>nJ!S7MEnE<|(+O zW~C - - - - - Icons - - -

mhsflrudLRUDpnio

- - diff --git a/icons/menu.svg b/icons/menu.svg new file mode 100644 index 0000000..d1081a5 --- /dev/null +++ b/icons/menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/move-backward.svg b/icons/move-backward.svg new file mode 100644 index 0000000..fc9c059 --- /dev/null +++ b/icons/move-backward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/move-forward.svg b/icons/move-forward.svg new file mode 100644 index 0000000..c541bf7 --- /dev/null +++ b/icons/move-forward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/redo.svg b/icons/redo.svg new file mode 100644 index 0000000..0aa2f66 --- /dev/null +++ b/icons/redo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/search.svg b/icons/search.svg new file mode 100644 index 0000000..b9f6243 --- /dev/null +++ b/icons/search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/style.css b/icons/style.css deleted file mode 100644 index 7b1520b..0000000 --- a/icons/style.css +++ /dev/null @@ -1,17 +0,0 @@ -body { - font-size: 256px; -} - -@font-face { - font-family: "Icons"; - src: url("icons.ttf") format("truetype"); -} - -.ic { - font-family: Icons; - font-style: normal; - font-weight: normal; - text-transform: none; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} diff --git a/icons/svg/angle-down.svg b/icons/svg/angle-down.svg deleted file mode 100644 index 22a351e..0000000 --- a/icons/svg/angle-down.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/angle-left.svg b/icons/svg/angle-left.svg deleted file mode 100644 index e676089..0000000 --- a/icons/svg/angle-left.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/angle-right.svg b/icons/svg/angle-right.svg deleted file mode 100644 index e61c38c..0000000 --- a/icons/svg/angle-right.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/angle-up.svg b/icons/svg/angle-up.svg deleted file mode 100644 index 9759f63..0000000 --- a/icons/svg/angle-up.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/arrow-down.svg b/icons/svg/arrow-down.svg deleted file mode 100644 index a3aa83a..0000000 --- a/icons/svg/arrow-down.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/arrow-left.svg b/icons/svg/arrow-left.svg deleted file mode 100644 index 00846e7..0000000 --- a/icons/svg/arrow-left.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/arrow-right.svg b/icons/svg/arrow-right.svg deleted file mode 100644 index 06a1f50..0000000 --- a/icons/svg/arrow-right.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/arrow-up.svg b/icons/svg/arrow-up.svg deleted file mode 100644 index 21da6ee..0000000 --- a/icons/svg/arrow-up.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/double_angle-left.svg b/icons/svg/double_angle-left.svg deleted file mode 100644 index 6b96448..0000000 --- a/icons/svg/double_angle-left.svg +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/icons/svg/double_angle-right.svg b/icons/svg/double_angle-right.svg deleted file mode 100644 index 44eebe1..0000000 --- a/icons/svg/double_angle-right.svg +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/icons/svg/frontlight.svg b/icons/svg/frontlight.svg deleted file mode 100644 index b7114a4..0000000 --- a/icons/svg/frontlight.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/home.svg b/icons/svg/home.svg deleted file mode 100644 index 01d6f54..0000000 --- a/icons/svg/home.svg +++ /dev/null @@ -1,116 +0,0 @@ - - - - - h - - - - - - - - - - - - - - image/svg+xml - - h - - - - - - - diff --git a/icons/svg/menu.svg b/icons/svg/menu.svg deleted file mode 100644 index 246f092..0000000 --- a/icons/svg/menu.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/svg/redo.svg b/icons/svg/redo.svg deleted file mode 100644 index 650393f..0000000 --- a/icons/svg/redo.svg +++ /dev/null @@ -1,115 +0,0 @@ - - - - - R - - - - - - - - - - - - - - image/svg+xml - - R - - - - - - - diff --git a/icons/svg/search.svg b/icons/svg/search.svg deleted file mode 100644 index f598f4f..0000000 --- a/icons/svg/search.svg +++ /dev/null @@ -1,115 +0,0 @@ - - - - - s - - - - - - - - - - - - - - image/svg+xml - - s - - - - - - - diff --git a/icons/svg/undo.svg b/icons/svg/undo.svg deleted file mode 100644 index 6f930d4..0000000 --- a/icons/svg/undo.svg +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/icons/undo.svg b/icons/undo.svg new file mode 100644 index 0000000..608ae51 --- /dev/null +++ b/icons/undo.svg @@ -0,0 +1 @@ + \ No newline at end of file -- 2.51.2