From 266327da068f7f440b250bd8e914b093a72876d1 Mon Sep 17 00:00:00 2001 From: meetwq Date: Thu, 7 Mar 2024 21:37:50 +0800 Subject: [PATCH] adjust default fallback fonts --- README.md | 2 +- pil_utils/fonts.py | 4 ++-- poetry.lock | 8 ++++---- pyproject.toml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 50e98b9..d1e1fcb 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ 默认从以下备选字体列表中查找能够显示的字体 ``` -"Arial", "Tahoma", "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK JP", "WenQuanYi Micro Hei", "Noto Sans SC", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" +"Arial", "Tahoma", "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" ``` #### 中文字体 和 emoji字体 安装 diff --git a/pil_utils/fonts.py b/pil_utils/fonts.py index eeee830..6c0313e 100644 --- a/pil_utils/fonts.py +++ b/pil_utils/fonts.py @@ -19,9 +19,9 @@ "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", - "Noto Sans CJK JP", - "WenQuanYi Micro Hei", "Noto Sans SC", + "Noto Sans CJK SC", + "WenQuanYi Micro Hei", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", diff --git a/poetry.lock b/poetry.lock index 5735781..c5db733 100644 --- a/poetry.lock +++ b/poetry.lock @@ -226,13 +226,13 @@ woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"] [[package]] name = "importlib-resources" -version = "6.1.2" +version = "6.1.3" description = "Read resources from Python packages" optional = false python-versions = ">=3.8" files = [ - {file = "importlib_resources-6.1.2-py3-none-any.whl", hash = "sha256:9a0a862501dc38b68adebc82970140c9e4209fc99601782925178f8386339938"}, - {file = "importlib_resources-6.1.2.tar.gz", hash = "sha256:308abf8474e2dba5f867d279237cd4076482c3de7104a40b41426370e891549b"}, + {file = "importlib_resources-6.1.3-py3-none-any.whl", hash = "sha256:4c0269e3580fe2634d364b39b38b961540a7738c02cb984e98add8b4221d793d"}, + {file = "importlib_resources-6.1.3.tar.gz", hash = "sha256:56fb4525197b78544a3354ea27793952ab93f935bb4bf746b846bb1015020f2b"}, ] [package.dependencies] @@ -240,7 +240,7 @@ zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} [package.extras] docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] +testing = ["jaraco.collections", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy", "pytest-ruff (>=0.2.1)", "zipp (>=3.17)"] [[package]] name = "kiwisolver" diff --git a/pyproject.toml b/pyproject.toml index 3c032d4..a984675 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pil-utils" -version = "0.1.9" +version = "0.1.10" description = "A simple PIL wrapper and text-to-image tool" authors = ["meetwq "] license = "MIT"