[med-svn] [Git][python-team/packages/python-wordcloud][master] 3 commits: Use NotoMono-Regular.ttf in place of DroidSansMono.ttf
Sophie Brun (@sophieb)
gitlab at salsa.debian.org
Mon Sep 23 13:00:32 BST 2024
Sophie Brun pushed to branch master at Debian Python Team / packages / python-wordcloud
Commits:
c5902f17 by Arnaud Rebillout at 2024-09-23T13:55:04+07:00
Use NotoMono-Regular.ttf in place of DroidSansMono.ttf
Thus dropping the huge dependency on textlive-fonts-extra.
For context, the Droid fonts were relaced by the Noto fonts a long time
ago, cf. [1] and [2].
So the correct replacement for DroidSansMono.ttf should be in there:
```
$ dpkg -L fonts-noto-mono | grep ttf
/usr/share/fonts/truetype/noto/NotoMono-Regular.ttf
/usr/share/fonts/truetype/noto/NotoSansMono-Bold.ttf
/usr/share/fonts/truetype/noto/NotoSansMono-Regular.ttf
```
After trying to regenerate `examples/parrot.py` with those fonts, it
turns out that using the font `NotoMono-Regular.ttf` produces a
byte-for-byte identical output as with using the font
`DroidSansMono.ttf`. So it's really really Ok to swap.
References:
[1]: https://lists.ubuntu.com/archives/ubuntu-devel/2016-February/039159.html
[2]: https://fonts.google.com/noto/use#faq
Closes: #1055946
- - - - -
9c6d4c5d by Arnaud Rebillout at 2024-09-23T13:55:13+07:00
Use execute_after in d/rules
And other nitpicks
- - - - -
8bf690c6 by Sophie Brun at 2024-09-23T12:00:29+00:00
Merge branch 'master' into 'master'
Use NotoMono-Regular.ttf in place of DroidSansMono.ttf
See merge request python-team/packages/python-wordcloud!1
- - - - -
2 changed files:
- debian/control
- debian/rules
Changes:
=====================================
debian/control
=====================================
@@ -29,7 +29,7 @@ Depends: ${python3:Depends},
python3-matplotlib,
python3-numpy,
python3-pil,
- texlive-fonts-extra
+ fonts-noto-mono
Description: little word cloud generator in Python
Compared to other wordclouds, this algorithm has the advantage of
* filling all available space.
=====================================
debian/rules
=====================================
@@ -1,10 +1,9 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export PYBUILD_NAME=wordcloud
+export PYBUILD_NAME = wordcloud
export PYBUILD_AFTER_INSTALL = \
- dh_link /usr/share/texlive/texmf-dist/fonts/truetype/ascender/droid/droidsansmono/DroidSansMono.ttf {install_dir}/$(PYBUILD_NAME)/DroidSansMono.ttf
-
+ dh_link /usr/share/fonts/truetype/noto/NotoMono-Regular.ttf {install_dir}/$(PYBUILD_NAME)/DroidSansMono.ttf
%:
dh $@ --with python3 --buildsystem=pybuild
@@ -15,8 +14,7 @@ override_dh_auto_clean:
rm "${CURDIR}/wordcloud/query_integral_image.c"; \
fi
-override_dh_auto_configure:
- dh_auto_configure
+execute_after_auto_configure:
cython3 wordcloud/*.pyx
# skip tests when building, depends on autopkgtest
View it on GitLab: https://salsa.debian.org/python-team/packages/python-wordcloud/-/compare/7c60aed19a224b378513554a98e7cf58d66d043f...8bf690c631e13a0ee7418e4dd185a96c1103c176
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-wordcloud/-/compare/7c60aed19a224b378513554a98e7cf58d66d043f...8bf690c631e13a0ee7418e4dd185a96c1103c176
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240923/d6481411/attachment-0001.htm>
More information about the debian-med-commit
mailing list