1
0

Accepting request 844872 from M17N:fonts

- Update to version 2.0

OBS-URL: https://build.opensuse.org/request/show/844872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/int10h-oldschoolpc-fonts?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-10-30 10:47:49 +00:00 committed by Git OBS Bridge
commit 7179240bba
5 changed files with 92 additions and 14 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Oct 29 11:37:28 UTC 2020 - Jan Engelhardt <jengelh@inai.de>
- Update to version 2.0
* Added new variants: Ac (aspect corrected) and
Mx (Mixed outline + bitmap).
* New fonts (overview): AMI EGA, AST PremiumExec (quite like
VGA SquarePx), Acer-*, Apricot-*, Compaq Port3, DOS V, EpsonMGA,
EverexME (like EGA), IBM Model30, IBM PS/55, LE Model D, NEC APC3, Nix8810,
Olivetti M15/MX, Trident
* ToshibaLCD was renamed to ToshibaSat; a few other minor
renames.
- All pre-stretched fonts (both Ac or Px-2X/Px-2Y variants) were
moved to the -stretched subpackage.
-------------------------------------------------------------------
Tue Jan 22 23:14:06 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package int10h-oldschoolpc-fonts
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,32 +17,39 @@
Name: int10h-oldschoolpc-fonts
Version: 1.0
Version: 2.0
Release: 0
Summary: Remakes of old computer hardware fonts
License: CC-BY-SA-4.0
Group: System/X11/Fonts
URL: http://int10h.org/oldschool-pc-fonts/
Source: http://int10h.org/oldschool-pc-fonts/download/ultimate_oldschool_pc_font_pack_v1.0.zip
Source: https://int10h.org/oldschool-pc-fonts/download/oldschool_pc_font_pack_v2.0_ttf.zip
Source8: ratio.txt
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This fontpack contains remakes of various type styles
from text-mode era PCs  in modern Unicode-compatible TrueType form
(plus straight bitmap versions). The main focus is on hardware
character sets: the kind that's located in a ROM and shown by default
when working in text (or graphics) mode.
This fontpack contains remakes of various type styles from text-mode
era PCs  in modern Unicode-compatible TrueType form (plus straight
bitmap versions). The main focus is on hardware character sets: the
kind that's located in a ROM and shown by default when working in
text (or graphics) mode.
[ Classic hardware text mode stretches the fonts to fit the screen!
To recreate the same visuals of that, a stretch factor must be
applied. For details, see ratio.txt inside the package. ]
%package stretched
Summary: Pre-stretched versions of int10h-oldschoolpc-fonts
Group: System/X11/Fonts
%description stretched
This package contains aspect-corrected and non-corrected-but-stretched
variants of the main font files.
%prep
%setup -Tcqa0
cp "%_sourcedir/ratio.txt" .
@ -54,13 +61,21 @@ mv LICENSE.TXT license.txt
%install
c="%buildroot/%_ttfontsdir"
mkdir -p "$c"
rm -fv */Mx*.ttf
install -pm 0644 */*.ttf "$c/"
%reconfigure_fonts_scriptlets
%files
%defattr(-, root,root)
%doc readme.txt license.txt ratio.txt
%_ttfontsdir/
%_ttfontsdir/Px*
%exclude %_ttfontsdir/*-2x.ttf
%exclude %_ttfontsdir/*-2y.ttf
%files stretched
%dir %_ttfontsdir/
%_ttfontsdir/Ac*
%_ttfontsdir/*-2x.ttf
%_ttfontsdir/*-2y.ttf
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c39482e07490aa0207d7bc21d070b0668157564f50b8bd9c445fc26290cb901
size 9827846

View File

@ -1,3 +1,6 @@
== Introduction ==
In classic IBM PC text mode, the graphics card stretches the font
such that it fills the screen.
@ -16,6 +19,9 @@ To faithfully recreate the same visual look as such a monitor would
show, this aspect ratio needs to be applied when making use of the
font.
== Application support for stretching ==
For cool-retro-term, there is a "Font Width" slider in the settings;
set it to 74%, 83%, or whatever is necessary. (Notice the pattern of
the "decimal" column of our table.)
@ -42,3 +48,45 @@ different size than the main characters. For a stretching matrix like
1/1.35, not specifying -fd and, as a result, having smaller CJK chars
is not as bad a problem as having bigger truncated CJK chars with a
compressing matrix like 0.74/1.
== Application-independent approach ==
Not all programs support specifying a matrix or a scaling factor.
Under systems using fontconfig (such as Linux distributions),
it is possible to override the stretch for an existing font
like so (~/.config/fontconfig/fonts.conf):
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<test qual="any" name="family">
<string>Px437 IBM VGA 9x16</string>
</test>
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix>
<double>0.73</double>
<double>0</double>
<double>0</double>
<double>1</double>
</matrix>
</times>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
== Framework-independent approach ==
The int10h project offers font files that have their aspect
correction applied at the font level. As a result, they won't need
support from fontconfig or applications at all. These font files are
provided in the
int10h-oldschoolpc-fonts-stretched
subpackage in openSUSE.

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7666cf23176e34ea03a218b5c1500f4ad729d97150ab7bdb7cf2adf4c99a9a7a
size 1533806