From: Ryan Pavlik Date: Tue, 19 Jan 2021 21:11:43 +0000 (-0600) Subject: Add 04_use_system_unifont.patch, update d/control, d/solvespace.links to use system... X-Git-Tag: archive/raspbian/3.1+ds1-4+rpi1^2~98 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=62bfcb59c92968462993ae0d3f7350bce307b0f4;p=solvespace.git Add 04_use_system_unifont.patch, update d/control, d/solvespace.links to use system unifont --- diff --git a/debian/control b/debian/control index b61d807..b2d32a2 100644 --- a/debian/control +++ b/debian/control @@ -30,7 +30,8 @@ Architecture: any Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends}, - libjs-three + libjs-three, + unifont Description: Parametric 2d/3d CAD SolveSpace is a parametric 2d/3d CAD program. Applications include: . diff --git a/debian/patches/04_use_system_unifont.patch b/debian/patches/04_use_system_unifont.patch new file mode 100644 index 0000000..701ef32 --- /dev/null +++ b/debian/patches/04_use_system_unifont.patch @@ -0,0 +1,34 @@ +From: Ryan Pavlik +Date: Tue, 19 Jan 2021 15:06:55 -0600 +Subject: Use Unifont from system + +--- + res/CMakeLists.txt | 1 - + src/resource.cpp | 2 +- + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt +index d893f93..85b6e49 100644 +--- a/res/CMakeLists.txt ++++ b/res/CMakeLists.txt +@@ -259,7 +259,6 @@ add_resources( + locales/uk_UA.po + locales/ru_RU.po + locales/zh_CN.po +- fonts/unifont.hex.gz + fonts/private/0-check-false.png + fonts/private/1-check-true.png + fonts/private/2-radio-false.png +diff --git a/src/resource.cpp b/src/resource.cpp +index 7b19081..e8a51bb 100644 +--- a/src/resource.cpp ++++ b/src/resource.cpp +@@ -665,7 +665,7 @@ size_t BitmapFont::GetWidth(const std::string &str) { + } + + BitmapFont BitmapFont::Create() { +- BitmapFont Font = BitmapFont::From(LoadStringFromGzip("fonts/unifont.hex.gz")); ++ BitmapFont Font = BitmapFont::From(LoadString("fonts/unifont.hex")); + // Unifont doesn't have a glyph for U+0020. + Font.AddGlyph(0x0020, Pixmap::Create(Pixmap::Format::RGB, 8, 16)); + Font.AddGlyph(0xE000, LoadPng("fonts/private/0-check-false.png")); diff --git a/debian/patches/series b/debian/patches/series index 8ef2061..9c8db6b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ 01_RemoveGitHash.patch 02_add_debian_pkg_version.patch 03_use_system_threejs.patch +04_use_system_unifont.patch 10_mimalloc_restrict_cpu_yield.patch diff --git a/debian/solvespace.links b/debian/solvespace.links index 249f988..1b4d5d6 100644 --- a/debian/solvespace.links +++ b/debian/solvespace.links @@ -1 +1,2 @@ usr/share/javascript/three/three.js usr/share/solvespace/threejs/three.js +usr/share/unifont/unifont.hex usr/share/solvespace/fonts/unifont.hex