Commit eb714e95 authored by Kaushal Modi's avatar Kaushal Modi

Add Symbola subset for special characters

like UPWARDS BLACK CIRCLED WHITE ARROW.

Update jump.html partial to use those, and also the refined.css of course.

Remove such special characters from other fonts.
parent 4b115871
<div class="no-text-decoration">
<div class="jump top"><a href="#top" title="Top of this page"></a></div>
<div class="jump bottom"><a href="#bottom" title="Bottom of this page"></a></div>
<div class="jump top"><a href="#top" title="Top of this page"></a></div>
<div class="jump bottom"><a href="#bottom" title="Bottom of this page"></a></div>
</div>
#!/usr/bin/env bash
# Time-stamp: <2018-06-18 10:40:51 kmodi>
# Time-stamp: <2018-06-18 12:19:57 kmodi>
# https://github.com/be5invis/Iosevka/issues/238#issuecomment-351527918
# pyftsubset - https://github.com/fonttools/fonttools
......@@ -23,7 +23,7 @@ IFS=$'\n\t'
# U+00C0-00FF : more from Latin 1 Supplement, needed to cover non-English names of commentors like "Frédéric"
# U+2000-205E : General Punctuation : https://unicode-table.com/en/blocks/general-punctuation/ (includes zero width space, curly quotes, etc.)
# U+25A0,U+25CB : Unicode chars BLACK SQUARE and WHITE CIRCLE for unordered list bullets
# U+2B06,U+2B07 : Unicode chars UPWARDS BLACK ARROW and DOWNWARDS BLACK ARROW for the top/bottom jump links
# U+2B89,U+2B8B : Unicode chars UPWARDS BLACK CIRCLED WHITE ARROW and DOWNWARDS BLACK CIRCLED WHITE ARROW for the top/bottom jump links
common_args='--layout-features=""'
run_pyftsubset () {
......@@ -60,10 +60,11 @@ run_pyftsubset () {
done
}
run_pyftsubset "libre-baskerville/2012" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+25A0,U+25CB,U+00C0-00FF"
run_pyftsubset "source-sans-pro/2.020R-ro-1.075R-it" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+25A0,U+25CB"
run_pyftsubset "linux-libertine/5.3.0" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+25A0,U+25CB"
run_pyftsubset "andada/2013" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+25A0,U+25CB"
run_pyftsubset "iosevka/1.14.1" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+25A0,U+25CB,U+2B06-2B07"
run_pyftsubset "libre-baskerville/2012" "U+0020-007E,U+00A7-00BE,U+2000-205E,U+00C0-00FF"
run_pyftsubset "source-sans-pro/2.020R-ro-1.075R-it" "U+0020-007E,U+00A7-00BE,U+2000-205E"
run_pyftsubset "linux-libertine/5.3.0" "U+0020-007E,U+00A7-00BE,U+2000-205E"
run_pyftsubset "andada/2013" "U+0020-007E,U+00A7-00BE,U+2000-205E"
run_pyftsubset "iosevka/1.14.1" "U+0020-007E,U+00A7-00BE,U+2000-205E"
run_pyftsubset "symbola/v11.0" "U+25A0,U+25CB,U+2B89,U+2B8B"
echo "Done!"
Download source: http://users.teilar.gr/~g1951d/
ttf
\ No newline at end of file
......@@ -26,6 +26,7 @@
/* Source Sans Pro */
/* Libre Baskerville */
/* Andada */
/* Symbola */
/* ** Poole ** */
/* Tables */
/* Wide tables */
......@@ -117,6 +118,7 @@
--italics: 'Andada', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
--sans-serif-1: 'Linux Biolinum', Arial, Helvetica, sans-serif;
--sans-serif-2: 'Source Sans Pro', Arial, Helvetica, sans-serif;
--symbola: 'Symbola';
}
/* ** Fonts */
......@@ -216,6 +218,13 @@
font-weight: bold;
}
/* *** Symbola */
@font-face {
font-family: 'Symbola';
src: url('../fonts/symbola/v11.0/subset/Symbola.woff2') format('woff2'),
url('../fonts/symbola/v11.0/subset/Symbola.woff') format('woff');
}
/* * ** Poole ** */
/*
* ___
......@@ -998,7 +1007,7 @@ ul li {
list-style-type: none;
}
ul li::before {
font-family: var(--mono);
font-family: var(--symbola);
content: '○'; /* To get bullets similar to list-style-type: circle; Unicode 0x25cb WHITE CIRCLE */
/* content: '•'; /\* For a round bullet; Unicode 0x2022 BULLET *\/ */
/* content: '■'; /\* For a square bullet; Unicode 0x25a0 BLACK SQUARE *\/ */
......@@ -2155,15 +2164,15 @@ footer .social,
/* * Jump */
.jump {
font-family: var(--mono);
font-family: var(--symbola);
font-size: 2rem;
color: var(--grey-light);
position: fixed;
right: 0.2rem;
right: 0.3rem;
z-index: 999; /* Always on top */
}
.jump.top {
top: 2.5rem; /* Offset required so that the arrow does not overlap with the hamburger icon on small screens. */
top: 3rem; /* Offset required so that the arrow does not overlap with the hamburger icon on small screens. */
}
.jump.bottom {
bottom: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment