commit 0894a662629192796d662b579907a7c6372a2339123adbf52a1f95a2aae51c98 Author: Adrian Schröter Date: Sat May 4 01:32:17 2024 +0200 Sync from SUSE:SLFO:Main ttf-converter revision 0e3b385e5604ea562182c611a57f1041 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..8722457 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/antlarr-suse/ttf-converter + ttf-converter + 1.0.7 + 1.0.7 + git + enable + + + xz + *.tar + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..31ad130 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/antlarr-suse/ttf-converter + 64a18ae18568c450c6f4013a468a3981374e5344 \ No newline at end of file diff --git a/ttf-converter-1.0.7.tar.xz b/ttf-converter-1.0.7.tar.xz new file mode 100644 index 0000000..2564cc3 --- /dev/null +++ b/ttf-converter-1.0.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6ee0f63f5e3650fcb5619d353142931104ece507db2f8f1e384b2be8dab1a90 +size 16168 diff --git a/ttf-converter.changes b/ttf-converter.changes new file mode 100644 index 0000000..ca75bad --- /dev/null +++ b/ttf-converter.changes @@ -0,0 +1,77 @@ +------------------------------------------------------------------- +Thu May 4 17:26:24 UTC 2023 - Antonio Larrosa + +- Update to version 1.0.7: + * Explicitly flush the file for following read operation + * Fixed Unused mode warning + * Code style cleanups + * Update description inside README.md + +------------------------------------------------------------------- +Tue Jun 30 17:35:53 UTC 2020 - alarrosa@suse.com + +- Update to version 1.0.6: + * Standarize output when converting vector and bitmap fonts + * Add more subfamilies fixes (boo#1169444) + +------------------------------------------------------------------- +Mon Jun 29 12:09:28 UTC 2020 - Antonio Larrosa + +- Update to version 1.0.5: + * Add --family and --subfamily arguments to force values on those + fields + * Add parameters to fix glyph unicode values + --fix-glyph-unicode : Try to fix unicode points and glyph names + based on glyph names containing hexadecimal codes (like + "$0C00", "char12345" or "uni004F") + --replace-unicode-values: When passed 2 comma separated numbers + a,b the glyph with an unicode value of a is replaced with the + unicode value b. Can be used more than once. + --shift-unicode-values: When passed 3 comma separated numbers + a,b,c this shifts the unicode values of glyphs between a and b + (both included) by adding c. Can be used more than once. + * Add --bitmapTransform parameter to transform bitmap glyphs. When + used, all glyphs are modified with the transformation function and + values passed as parameters. The parameter has three values + separated by commas: fliph|flipv|rotate90cw|rotate90ccw| + rotate180|skew|transmove,xoff,yoff + (boo#1169444) + +------------------------------------------------------------------- +Thu Jun 25 10:38:37 UTC 2020 - alarrosa@suse.com + +- Update to version 1.0.4: + * Add support to convert bitmap fonts (boo#1169444) + * Rename MediumItalic subfamily to Medium Italic + * Show some more information when removing duplicated glyphs + +------------------------------------------------------------------- +Mon Jun 22 09:54:07 UTC 2020 - alarrosa@suse.com + +- Update to version 1.0.3: + * Bump version to 1.0.3 + * Add a --force-monospaced argument instead of hardcoding + font names + * Fix print format + * Convert `BoldCond` subfamily to `Bold Condensed` + +------------------------------------------------------------------- +Fri Jun 19 16:25:09 UTC 2020 - Antonio Larrosa + +- Update to 1.0.2 (boo#1169444 #c41) + * Fixes for Monospaced fonts and force the Nimbus Mono L font + to be Monospaced + * Add a --version argument + +------------------------------------------------------------------- +Fri Jun 19 11:25:07 UTC 2020 - Antonio Larrosa + +- Update to 1.0.1 (boo#1169444 #c41) + * Fix subfamily names so the converted font's subfamily match + the original ones + +------------------------------------------------------------------- +Mon Apr 20 07:45:35 UTC 2020 - Antonio Larrosa + +- Initial release of ttf-converter 1.0 (boo#1169444) + diff --git a/ttf-converter.spec b/ttf-converter.spec new file mode 100644 index 0000000..bc5e486 --- /dev/null +++ b/ttf-converter.spec @@ -0,0 +1,53 @@ +# +# spec file for package ttf-converter +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: ttf-converter +Version: 1.0.7 +Release: 0 +Summary: Python script that converts fonts to TrueType format +License: GPL-3.0-only +URL: https://github.com/antlarr-suse/ttf-converter +Source: ttf-converter-%{version}.tar.xz +BuildRequires: python3 +Requires: fontforge +Requires: ftdump +Requires: python3-base +BuildArch: noarch + +%description +A Python script that converts fonts to TrueType format. It uses +the fontforge python bindings to read/process and write any font +format. Also, as part of the conversion process, the script +tries to fix inconsistencies and do necessary changes to the font +to honor the TTF format specs. + +%prep +%setup -q + +%build + +%install +mkdir -p %{buildroot}%{_bindir} +cp ttf-converter %{buildroot}%{_bindir} + +%files +%license LICENSE +%doc README.md +%{_bindir}/ttf-converter + +%changelog