summaryrefslogtreecommitdiff
path: root/lulua
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2020-02-29 08:57:45 +0100
committerLars-Dominik Braun <lars@6xq.net>2020-02-29 08:57:45 +0100
commit05eb1d4c06a8d2f29e5220739648882ece4470ff (patch)
tree3f65c72b49063f4bc4b74cc77ea17645f20da2b3 /lulua
parent06731bcc53cff75fc83d851f1cc0c61ba6155b61 (diff)
downloadlulua-05eb1d4c06a8d2f29e5220739648882ece4470ff.tar.gz
lulua-05eb1d4c06a8d2f29e5220739648882ece4470ff.tar.bz2
lulua-05eb1d4c06a8d2f29e5220739648882ece4470ff.zip
Upgrade IBM Plex to 4.0.2
Arabic font was renamed.
Diffstat (limited to 'lulua')
-rw-r--r--lulua/data/render-svg.css2
-rw-r--r--lulua/data/report/style.css10
-rw-r--r--lulua/plot.py4
-rw-r--r--lulua/render.py4
4 files changed, 10 insertions, 10 deletions
diff --git a/lulua/data/render-svg.css b/lulua/data/render-svg.css
index 4bbfd2f..4c31e0f 100644
--- a/lulua/data/render-svg.css
+++ b/lulua/data/render-svg.css
@@ -1,6 +1,6 @@
/* inkscape-compatibility, explicitly apply font settings to .label */
svg, .label {
- font-family: "IBM Plex Arabic";
+ font-family: "IBM Plex Sans Arabic";
font-size: 90px;
font-weight: 400;
}
diff --git a/lulua/data/report/style.css b/lulua/data/report/style.css
index 26b2e96..b95add7 100644
--- a/lulua/data/report/style.css
+++ b/lulua/data/report/style.css
@@ -17,17 +17,17 @@ using http://colormind.io/bootstrap/
}
@font-face {
- font-family: 'IBM Plex Arabic';
+ font-family: 'IBM Plex Sans Arabic';
font-style: normal;
font-weight: 100;
- src: local('IBM Plex Arabic Thin'), local('IBMPlexArabic-Thin'), url('fonts/IBMPlexArabic-Thin.woff2') format('woff2');
+ src: local('IBM Plex Sans Arabic Thin'), local('IBMPlexSansArabic-Thin'), url('fonts/IBMPlexSansArabic-Thin.woff2') format('woff2');
}
@font-face {
- font-family: 'IBM Plex Arabic';
+ font-family: 'IBM Plex Sans Arabic';
font-style: normal;
font-weight: 400;
- src: local('IBM Plex Arabic Regular'), local('IBMPlexArabic-Regular'), url('fonts/IBMPlexArabic-Regular.woff2') format('woff2');
+ src: local('IBM Plex Sans Arabic Regular'), local('IBMPlexSansArabic-Regular'), url('fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
body {
@@ -38,7 +38,7 @@ body {
/* is there a better way to select _both_ fonts at the same time? */
:lang(ar) {
direction: rtl;
- font-family: "IBM Plex Arabic";
+ font-family: "IBM Plex Sans Arabic";
}
/* inside ltr text */
:lang(ar)[dir=ltr] {
diff --git a/lulua/plot.py b/lulua/plot.py
index de95892..fdfc16c 100644
--- a/lulua/plot.py
+++ b/lulua/plot.py
@@ -93,8 +93,8 @@ def letterfreq (args):
p.xgrid.grid_line_color = None
p.xaxis.major_label_text_font_size = "1.5em"
p.xaxis.major_label_text_font_size = "1.5em"
- p.xaxis.major_label_text_font = 'IBM Plex Arabic'
- p.yaxis.major_label_text_font = 'IBM Plex Arabic'
+ p.xaxis.major_label_text_font = 'IBM Plex Sans Arabic'
+ p.yaxis.major_label_text_font = 'IBM Plex Sans Arabic'
# no border fill
p.border_fill_color = None
p.background_fill_alpha = 0.5
diff --git a/lulua/render.py b/lulua/render.py
index 4fd92c3..7ffae5a 100644
--- a/lulua/render.py
+++ b/lulua/render.py
@@ -275,8 +275,8 @@ def renderSvg (args):
# which we cannot use since it does not support font-weight
style = ''
fonts = [
- ('IBM Plex Arabic', 100, '3rdparty/plex/IBM-Plex-Arabic/fonts/complete/woff2/IBMPlexArabic-Thin.woff2'),
- ('IBM Plex Arabic', 400, '3rdparty/plex/IBM-Plex-Arabic/fonts/complete/woff2/IBMPlexArabic-Regular.woff2')
+ ('IBM Plex Sans Arabic', 100, '3rdparty/plex/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Thin.woff2'),
+ ('IBM Plex Sans Arabic', 400, '3rdparty/plex/IBM-Plex-Sans-Arabic/fonts/complete/woff2/IBMPlexSansArabic-Regular.woff2')
]
for font, weight, path in fonts:
with open (path, 'rb') as fd: