From c069939320a2521cc56469318d1ad4d10c15b775f33081aa9375ae93812c05f9 Mon Sep 17 00:00:00 2001 From: Lukas Kucharczyk Date: Tue, 29 Dec 2020 20:20:43 +0000 Subject: [PATCH] - Update to v4.2.0 - Use TTC instead of TTF OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/iosevka-fonts?expand=0&rev=11 --- _service:download_files:README.md | 71 ++++++++++++++-- _service:download_files:ttc-iosevka-4.2.0.zip | 3 + ...download_files:ttc-iosevka-curly-4.2.0.zip | 3 + ...oad_files:ttc-iosevka-curly-slab-4.2.0.zip | 3 + ...:download_files:ttc-iosevka-slab-4.2.0.zip | 3 + _service:download_files:ttf-iosevka-4.0.3.zip | 3 - ...download_files:ttf-iosevka-curly-4.0.3.zip | 3 - ...oad_files:ttf-iosevka-curly-slab-4.0.3.zip | 3 - ...download_files:ttf-iosevka-fixed-4.0.3.zip | 3 - ...ad_files:ttf-iosevka-fixed-curly-4.0.3.zip | 3 - ...les:ttf-iosevka-fixed-curly-slab-4.0.3.zip | 3 - ...oad_files:ttf-iosevka-fixed-slab-4.0.3.zip | 3 - ...:download_files:ttf-iosevka-slab-4.0.3.zip | 3 - ...:download_files:ttf-iosevka-term-4.0.3.zip | 3 - ...oad_files:ttf-iosevka-term-curly-4.0.3.zip | 3 - ...iles:ttf-iosevka-term-curly-slab-4.0.3.zip | 3 - ...load_files:ttf-iosevka-term-slab-4.0.3.zip | 3 - iosevka-fonts.changes | 6 ++ iosevka-fonts.spec | 81 +++---------------- 19 files changed, 92 insertions(+), 114 deletions(-) create mode 100644 _service:download_files:ttc-iosevka-4.2.0.zip create mode 100644 _service:download_files:ttc-iosevka-curly-4.2.0.zip create mode 100644 _service:download_files:ttc-iosevka-curly-slab-4.2.0.zip create mode 100644 _service:download_files:ttc-iosevka-slab-4.2.0.zip delete mode 100644 _service:download_files:ttf-iosevka-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-curly-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-curly-slab-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-fixed-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-fixed-curly-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-fixed-curly-slab-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-fixed-slab-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-slab-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-term-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-term-curly-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-term-curly-slab-4.0.3.zip delete mode 100644 _service:download_files:ttf-iosevka-term-slab-4.0.3.zip diff --git a/_service:download_files:README.md b/_service:download_files:README.md index d916cb8..9e3281b 100644 --- a/_service:download_files:README.md +++ b/_service:download_files:README.md @@ -508,6 +508,9 @@ Subsection `variants` is used to configure character variants in the font. Prope + `d = 'toothless-corner'`, `cv14 = 2`: `d` without bottom-right tooth, with a corner transition. + `d = 'toothless-rounded'`, `cv14 = 3`: `d` without bottom-right tooth, with a rounded transition. + `d = 'tailed'`, `cv14 = 4`: `d` with a slightly tail bottom-right tail (default for Italic). + - Styles for `e`: + + `e = 'flat-crossbar'`, `cv59 = 1`: `e` with flat crossbar (default for Upright). + + `e = 'rounded'`, `cv59 = 2`: `e` with more rounded shape (default for Italic). - Styles for `f`: + `f = 'serifless'`, `cv15 = 1`: `f` without bottom serif, hook or exension (default for Sans Upright). + `f = 'serifed'`, `cv15 = 2`: `f` with bottom serif (default for Slab Upright). @@ -531,6 +534,9 @@ Subsection `variants` is used to configure character variants in the font. Prope + `g = 'opendoublestorey'`, `cv16 = 3`: Open Double-storey `g`, like Trebuchet MS or Fira Code. + `g = 'earless-corner'`, `cv16 = 4`: Earless (cornered top-right) single-storey `g`. + `g = 'earless-rounded'`, `cv16 = 5`: Earless (rounded top-right) single-storey `g`. + + `g = 'singlestorey-flat-hook'`, `cv16 = 6`: Single-storey `g` with flat terminal hook. + + `g = 'singlestorey-earless-corner-flat-hook'`, `cv16 = 7`: Earless (cornered top-right) single-storey `g` with flat terminal hook. + + `g = 'singlestorey-earless-rounded-flat-hook'`, `cv16 = 8`: Earless (rounded top-right) single-storey `g` with flat terminal hook. - Styles for `h`: + `h = 'straight'`, `cv17 = 1`: `h` with straight ending (default). + `h = 'tailed'`, `cv17 = 2`: `h` with curly tailed ending. @@ -647,6 +653,8 @@ Subsection `variants` is used to configure character variants in the font. Prope + `y = 'straight-turn'`, `cv32 = 2`: Letter `y` with straight upper and a tail turns leftward (default for Slab Upright). + `y = 'curly'`, `cv32 = 3`: More curly letter `y`, like Iosevka 2.x. + `y = 'cursive'`, `cv32 = 4`: Cursive-like `y` (default for Italic). + + `y = 'cursive-flat-hook'`, `cv32 = 5`: Cursive-like `y` with flat terminal hook. + + `y = 'curly-turn'`, `cv32 = 6`: More curly letter `y`, like Iosevka 2.x, with a tail turns leftward. - Styles for `z`, `Z`: + `z = 'standard'`, `cv33 = 1`: Standard `Z` and `z` (default). + `z = 'with-crossbar'`, `cv33 = 2`: Standard `Z` and `z` with a diagonal cross bar for better dsitinction with `2`. @@ -654,13 +662,20 @@ Subsection `variants` is used to configure character variants in the font. Prope + `z = 'curly'`, `cv33 = 4`: Curly `Z` and `z`. + `z = 'curly-with-crossbar'`, `cv33 = 5`: Curly `Z` and `z` with a diagonal cross bar for better dsitinction with `2`. + `z = 'curly-with-horizontal-crossbar'`, `cv33 = 6`: Curly `Z` and `z` with a horizontal cross bar for better dsitinction with `2`. - - Styles for `ß`: - + `eszet = 'traditional'`, `cv34 = 1`: Traditional, Fraktur-like Eszet. - + `eszet = 'sulzbacher'`, `cv34 = 2`: A more modern, beta-like Eszet (default). - + `eszet = 'longs-s-lig'`, `cv34 = 3`: An Eszet shown as a ligature of long-S (`ſ`) and `s`. - - Styles for `λ`: - + `lambda = 'straight'`, `cv35 = 1`: More-straight letter `λ` (default). - + `lambda = 'curly'`, `cv35 = 2`: More curly letter `λ`, like Iosevka 2.x. + - Styles for `ß` (Eszet): + + `eszet = 'traditional'`, `cv34 = 1`: Traditional, Fraktur-like Eszet (`ß`). + + `eszet = 'sulzbacher'`, `cv34 = 2`: More modern, beta-like Eszet (`ß`) (default). + + `eszet = 'longs-s-lig'`, `cv34 = 3`: Eszet (`ß`) shown as a ligature of long-S (`ſ`) and `s`. + - Styles for `λ` (Greek small Lambda): + + `lambda = 'straight'`, `cv35 = 1`: More-straight Greek small Lambda (`λ`) (default). + + `lambda = 'curly'`, `cv35 = 2`: More curly Greek small Lambda (`λ`), like Iosevka 2.x. + - Styles for `У` (Cyrillic Capital U): + + `cyrl-capital-u = 'straight'`, `cv60 = 1`: Cyrillic capital U (`У`) that is fully straight (default for Sans). + + `cyrl-capital-u = 'straight-turn'`, `cv60 = 2`: Cyrillic capital U (`У`) with straight upper and a tail turns leftward (default for Slab). + + `cyrl-capital-u = 'curly'`, `cv60 = 3`: More curly cyrillic capital U (`У`), like Iosevka 2.x. + + `cyrl-capital-u = 'cursive'`, `cv60 = 4`: Cursive-like Cyrillic capital U (`У`). + + `cyrl-capital-u = 'cursive-flat-hook'`, `cv60 = 5`: Cursive-like Cyrillic capital U (`У`) with flat terminal hook. + + `cyrl-capital-u = 'curly-turn'`, `cv60 = 6`: More curly cyrillic capital U (`У`), like Iosevka 2.x, with a tail turns leftward. - Styles for `0`: + `zero = 'slashed'`, `cv36 = 1`: Slashed Zero `0` (default). + `zero = 'dotted'`, `cv36 = 2`: Dotted Zero `0`. @@ -671,6 +686,11 @@ Subsection `variants` is used to configure character variants in the font. Prope + `one = 'nobase'`, `cv37 = 1`: `1` without bottom serif (default for Sans). + `one = 'base'`, `cv37 = 2`: `1` with bottom serif (default for Slab). + `one = 'line'`, `cv37 = 3`: `1` drawn just like a straight line. + + `one = 'nobase-long-top-serif'`, `cv37 = 4`: `1` without bottom serif and with a long top serif. + + `one = 'base-long-top-serif'`, `cv37 = 5`: `1` with bottom serif and a long top serif. + - Styles for `2`: + + `two = 'straight-neck'`, `cv61 = 1`: `2` with straight neck. + + `two = 'curly-neck'`, `cv61 = 2`: `2` with curly neck (default). - Styles for `3`: + `three = 'flattop'`, `cv38 = 1`: Flat top `3` (Like Museo Sans / Montserrat). + `three = 'twoarcs'`, `cv38 = 2`: Arched top `3` (default). @@ -758,6 +778,7 @@ Subsection `variants` is used to configure character variants in the font. Prope - Styles for `` ` ``: + `ascii-grave = 'straight'`, `cv58 = 1`: Show ASCII grave (`` ` ``) as short diagonal straight bar. (default). + `ascii-grave = 'raised-inverse-comma'`, `cv58 = 2`: Show ASCII grave (`` ` ``) as raised comma.. + + `ascii-grave = 'raised-turn-comma'`, `cv58 = 3`: Show ASCII grave (`` ` ``) as raised turned comma, identical to curly open single quote symbols (U+2018).. @@ -794,6 +815,42 @@ featureTag = 'calt' sequence = '<*>' ``` +#### Metric Override + +Subsection `metric-override` provides ability to override certain metric values, if you *reallly* want to. Adding this section is **strongly discouraged** as it may introduce broken geometry or broken shapes. + +| Property | Unit | Default Value | Meaning | +|----------|------|---------|----------| +| `cap` | emu | 735 | Height of `H`. | +| `xheight` | emu | 530 | Height of `x`. | +| `sb` | emu | (*varies, 60 for Regular*) | Width of common side-bearings. | +| `leading` | emu | 1250 | Built-in line height. | +| `symbolMid` | emu | 340 | Height of the center of hyphen (`-`). | +| `parenSize` | emu | 966 | Height of Parentheses. | +| `winMetricAscenderPad` | emu | 0 | Additional pad for Win metrics’ ascender to avoid clipping in legacy Windows applications. | +| `winMetricDescenderPad` | emu | 0 | Additional pad for Win metrics’ descender to avoid clipping in legacy Windows applications. | +| `powerlineScaleX`, `powerlineScaleY` | (*ratio*) | 1 | X and Y scale of Powerline glyphs. | +| `powerlineShiftX`, `powerlineShiftY` | emu | 0 | X and Y shift of Powerline glyphs. | +| `onumZeroHeightRatio` | (*ratio*) | 1.145 | Ratio of height of `0` under `onum` feature, to the height of `x`. | + +Sub-subsection `metric-override.multiplies` and `metric-override.adds` could be used to override the value by multiplying a scale to the default value, then add a shift to it further. The following configuration + +```toml +[buildPlans.iosevka-custom.metric-override] +leading = 1500 + +[buildPlans.iosevka-custom.metric-override.multiplies] +sb = 1.0625 + +[buildPlans.iosevka-custom.metric-override.adds] +sb = 15 +``` + +will: + +* Override line height to `1500` em-unit; +* Override the sidebearing value by its value multiplied by `1.0625` then added with `15`. + #### Sample Configuration A sample configuration could be found at [private-build-plans.sample.toml](private-build-plans.sample.toml). diff --git a/_service:download_files:ttc-iosevka-4.2.0.zip b/_service:download_files:ttc-iosevka-4.2.0.zip new file mode 100644 index 0000000..ee8e066 --- /dev/null +++ b/_service:download_files:ttc-iosevka-4.2.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63d7f4acb95adc6b771aebf8fab7a6964e1039a0ce51777381aa56f910f636e9 +size 30063466 diff --git a/_service:download_files:ttc-iosevka-curly-4.2.0.zip b/_service:download_files:ttc-iosevka-curly-4.2.0.zip new file mode 100644 index 0000000..e4e4ec5 --- /dev/null +++ b/_service:download_files:ttc-iosevka-curly-4.2.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8168cd5513f1b09199bd2db9477b2f7a0250b02e93a5c2072e8b7bf96d72c00e +size 30016041 diff --git a/_service:download_files:ttc-iosevka-curly-slab-4.2.0.zip b/_service:download_files:ttc-iosevka-curly-slab-4.2.0.zip new file mode 100644 index 0000000..0901110 --- /dev/null +++ b/_service:download_files:ttc-iosevka-curly-slab-4.2.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d2072bba3e95cb3430a9e4f9879cb43f1fe0d90958cd2004b6513fab7681627 +size 35297461 diff --git a/_service:download_files:ttc-iosevka-slab-4.2.0.zip b/_service:download_files:ttc-iosevka-slab-4.2.0.zip new file mode 100644 index 0000000..8c7ff6e --- /dev/null +++ b/_service:download_files:ttc-iosevka-slab-4.2.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a35f1f2f22834c566e2c84da8eaac2185511fae14e48b7a334f66504eda8365f +size 35322790 diff --git a/_service:download_files:ttf-iosevka-4.0.3.zip b/_service:download_files:ttf-iosevka-4.0.3.zip deleted file mode 100644 index ef67f52..0000000 --- a/_service:download_files:ttf-iosevka-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:566bbdb974fcc0aed33a0c2ff4a0f7fcefdf6beae789324367772dd3254f4f03 -size 31514949 diff --git a/_service:download_files:ttf-iosevka-curly-4.0.3.zip b/_service:download_files:ttf-iosevka-curly-4.0.3.zip deleted file mode 100644 index 52df241..0000000 --- a/_service:download_files:ttf-iosevka-curly-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c29edb2f4fd9b0e4b086175c828ea6da35fcbf889badb2cca0e107b3793a301 -size 31515671 diff --git a/_service:download_files:ttf-iosevka-curly-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-curly-slab-4.0.3.zip deleted file mode 100644 index 0d782b6..0000000 --- a/_service:download_files:ttf-iosevka-curly-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db552a984e553c33a531b4e457275f2eb1b65cc1d468e2d67e191178e221d4ec -size 36290294 diff --git a/_service:download_files:ttf-iosevka-fixed-4.0.3.zip b/_service:download_files:ttf-iosevka-fixed-4.0.3.zip deleted file mode 100644 index 142515c..0000000 --- a/_service:download_files:ttf-iosevka-fixed-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ff22181b75fb153b343e00f3022548d66e81ce2f7eefadda7e8fe5f31e84679 -size 24000075 diff --git a/_service:download_files:ttf-iosevka-fixed-curly-4.0.3.zip b/_service:download_files:ttf-iosevka-fixed-curly-4.0.3.zip deleted file mode 100644 index 4f5742e..0000000 --- a/_service:download_files:ttf-iosevka-fixed-curly-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5557e56fda6d18eb666f95629ef18e849fed877d94f3eee319709259f6bdcf4e -size 23999787 diff --git a/_service:download_files:ttf-iosevka-fixed-curly-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-fixed-curly-slab-4.0.3.zip deleted file mode 100644 index 0495d2e..0000000 --- a/_service:download_files:ttf-iosevka-fixed-curly-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d8d15f9e4b599bf48e0381bed68e51338c4291762ecf448ffb3eea8f9b1c3f9 -size 28553378 diff --git a/_service:download_files:ttf-iosevka-fixed-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-fixed-slab-4.0.3.zip deleted file mode 100644 index 94a767d..0000000 --- a/_service:download_files:ttf-iosevka-fixed-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d28967cb230c413b5a974c33e5a347d513a4ef8bf72f0b454aab43cbd365500 -size 28537136 diff --git a/_service:download_files:ttf-iosevka-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-slab-4.0.3.zip deleted file mode 100644 index 563d51c..0000000 --- a/_service:download_files:ttf-iosevka-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00095582b8a09479cd582da01cb17f5bbfbe0ae60bbaf42a23491e93f98ceff3 -size 36272657 diff --git a/_service:download_files:ttf-iosevka-term-4.0.3.zip b/_service:download_files:ttf-iosevka-term-4.0.3.zip deleted file mode 100644 index 3626961..0000000 --- a/_service:download_files:ttf-iosevka-term-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70d0a9fda2f6dcc8809df24847313f9511d7fa9400572d2543717122f67f5e24 -size 31520159 diff --git a/_service:download_files:ttf-iosevka-term-curly-4.0.3.zip b/_service:download_files:ttf-iosevka-term-curly-4.0.3.zip deleted file mode 100644 index 4648459..0000000 --- a/_service:download_files:ttf-iosevka-term-curly-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6ad925925e33c14b53490ad879c3001a82d8ffb813bbea04031f08b754bcd31 -size 31520730 diff --git a/_service:download_files:ttf-iosevka-term-curly-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-term-curly-slab-4.0.3.zip deleted file mode 100644 index 549d252..0000000 --- a/_service:download_files:ttf-iosevka-term-curly-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12261703ea68c6347dbd618a66fade4f5bb12a76e386d8c7324dbab74c817909 -size 36310245 diff --git a/_service:download_files:ttf-iosevka-term-slab-4.0.3.zip b/_service:download_files:ttf-iosevka-term-slab-4.0.3.zip deleted file mode 100644 index 15debaa..0000000 --- a/_service:download_files:ttf-iosevka-term-slab-4.0.3.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd4c301c2429c66cc6da1ba57f5a67a26e50b6319c47d16ef501a5df736ff394 -size 36288809 diff --git a/iosevka-fonts.changes b/iosevka-fonts.changes index 22e2151..f90a1ac 100644 --- a/iosevka-fonts.changes +++ b/iosevka-fonts.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 29 20:19:47 UTC 2020 - Lukas Kucharczyk + +- Update to v4.2.0 +- Use TTC instead of TTF + ------------------------------------------------------------------- Mon Dec 14 07:00:05 UTC 2020 - Lukas Kucharczyk diff --git a/iosevka-fonts.spec b/iosevka-fonts.spec index 0a817d2..a72649f 100644 --- a/iosevka-fonts.spec +++ b/iosevka-fonts.spec @@ -15,24 +15,16 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ Name: iosevka-fonts -Version: 4.0.3 +Version: 4.2.0 Release: 0 Summary: Slender typeface for code, from code License: OFL-1.1 Group: System/X11/Fonts URL: https://typeof.net/Iosevka/ -Source1: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-%{version}.zip -Source2: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-%{version}.zip -Source3: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-%{version}.zip -Source4: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-slab-%{version}.zip -Source5: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-slab-%{version}.zip -Source6: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-slab-%{version}.zip -Source7: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-curly-%{version}.zip -Source8: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-curly-%{version}.zip -Source9: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-curly-%{version}.zip -Source10: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-curly-slab-%{version}.zip -Source11: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-fixed-curly-slab-%{version}.zip -Source12: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttf-iosevka-term-curly-slab-%{version}.zip +Source1: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-%{version}.zip +Source2: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-slab-%{version}.zip +Source3: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-curly-%{version}.zip +Source4: https://github.com/be5invis/Iosevka/releases/download/v%{version}/ttc-iosevka-curly-slab-%{version}.zip Source20: https://raw.githubusercontent.com/be5invis/Iosevka/master/LICENSE.md Source21: https://raw.githubusercontent.com/be5invis/Iosevka/master/README.md BuildRequires: fontpackages-devel @@ -46,96 +38,43 @@ typeface family, designed for writing code, using in terminals, and preparing technical documents. %prep -for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12}; +for s in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4}; do - unzip $s '*.ttf'; + unzip $s '*.ttc'; done cp %{SOURCE20} %{SOURCE21} . %build declare -A family=( \ [iosevka]=Iosevka \ - [iosevka-fixed]=IosevkaFixed \ - [iosevka-term]=IosevkaTerm \ [iosevka-slab]=IosevkaSlab \ - [iosevka-fixed-slab]=IosevkaFixedSlab \ - [iosevka-term-slab]=IosevkaTermSlab \ [iosevka-curly]=IosevkaCurly \ - [iosevka-fixed-curly]=IosevkaFixedCurly \ - [iosevka-term-curly]=IosevkaTermCurly \ [iosevka-curly-slab]=IosevkaCurlySlab \ - [iosevka-fixed-curly-slab]=IosevkaFixedCurlySlab \ - [iosevka-term-curly-slab]=IosevkaTermCurlySlab \ ) declare -A variant=( \ [bold]=Bold \ - [bolditalic]=BoldItalic \ - [boldoblique]=BoldOblique \ - [extralight]=Extralight \ - [extralightitalic]=ExtralightItalic \ - [extralightoblique]=ExtralightOblique \ [heavy]=Heavy \ - [heavyitalic]=HeavyItalic \ - [heavyoblique]=HeavyOblique \ - [italic]=Italic \ [light]=Light \ - [lightitalic]=LightItalic \ - [lightoblique]=LightOblique \ [medium]=Medium \ - [mediumitalic]=MediumItalic \ - [mediumoblique]=MediumOblique \ - [oblique]=Oblique \ [regular]=Regular \ [thin]=Thin \ - [thinitalic]=ThinItalic \ - [thinoblique]=ThinOblique \ - [extended]=Extended \ - [extendedbold]=ExtendedBold \ - [extendedbolditalic]=ExtendedBoldItalic \ - [extendedboldoblique]=ExtendedBoldOblique \ - [extendedextrabold]=ExtendedExtrabold \ - [extendedextrabolditalic]=ExtendedExtraboldItalic \ - [extendedextraboldoblique]=ExtendedExtraboldOblique \ - [extendedextralight]=ExtendedExtralight \ - [extendedextralightitalic]=ExtendedExtralightItalic \ - [extendedextralightoblique]=ExtendedExtralightOblique \ - [extendedheavy]=ExtendedHeavy \ - [extendedheavyitalic]=ExtendedHeavyItalic \ - [extendedheavyoblique]=ExtendedHeavyOblique \ - [extendeditalic]=ExtendedItalic \ - [extendedlight]=ExtendedLight \ - [extendedlightitalic]=ExtendedLightItalic \ - [extendedlightoblique]=ExtendedLightOblique \ - [extendedmedium]=ExtendedMedium \ - [extendedmediumitalic]=ExtendedMediumItalic \ - [extendedmediumoblique]=ExtendedMediumOblique \ - [extendedoblique]=ExtendedOblique \ - [extendedsemibold]=ExtendedSemibold \ - [extendedsemibolditalic]=ExtendedSemiboldItalic \ - [extendedsemiboldoblique]=ExtendedSemiboldOblique \ - [extendedthin]=ExtendedThin \ - [extendedthinitalic]=ExtendedThinItalic \ - [extendedthinoblique]=ExtendedThinOblique \ [extrabold]=Extrabold \ - [extrabolditalic]=ExtraboldItalic \ - [extraboldoblique]=ExtraboldOblique \ + [extralight]=Extralight \ [semibold]=Semibold \ - [semibolditalic]=SemiboldItalic \ - [semiboldoblique]=SemiboldOblique \ ) for f in ${!family[@]}; do for v in ${!variant[@]}; do - mv $f-$v.ttf ${family[$f]}-${variant[$v]}.ttf + mv $f-$v.ttc ${family[$f]}-${variant[$v]}.ttc done done %install install -d %{buildroot}%{_ttfontsdir} -install -m0644 *.ttf %{buildroot}%{_ttfontsdir} +install -m0644 *.ttc %{buildroot}%{_ttfontsdir} %reconfigure_fonts_scriptlets %files