Sync from SUSE:SLFO:Main ttf-converter revision 0e3b385e5604ea562182c611a57f1041

This commit is contained in:
Adrian Schröter 2024-05-04 01:32:17 +02:00
commit 0894a66262
6 changed files with 176 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/antlarr-suse/ttf-converter</param>
<param name="filename">ttf-converter</param>
<param name="version">1.0.7</param>
<param name="revision">1.0.7</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled" />
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/antlarr-suse/ttf-converter</param>
<param name="changesrevision">64a18ae18568c450c6f4013a468a3981374e5344</param></service></servicedata>

BIN
ttf-converter-1.0.7.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

77
ttf-converter.changes Normal file
View File

@ -0,0 +1,77 @@
-------------------------------------------------------------------
Thu May 4 17:26:24 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
- 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 <alarrosa@suse.com>
- 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 <alarrosa@suse.com>
- 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 <alarrosa@suse.com>
- 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 <alarrosa@suse.com>
- Initial release of ttf-converter 1.0 (boo#1169444)

53
ttf-converter.spec Normal file
View File

@ -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