1
0
Jan Engelhardt 2020-10-29 12:55:52 +00:00 committed by Git OBS Bridge
parent 37be020598
commit b1ea056549
3 changed files with 75 additions and 6 deletions

View File

@ -4,6 +4,14 @@ 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

@ -32,16 +32,24 @@ BuildRequires: unzip
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" .
@ -53,12 +61,17 @@ 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
%doc readme.txt license.txt ratio.txt
%_ttfontsdir/
%_ttfontsdir/Px*
%files stretched
%dir %_ttfontsdir/
%_ttfontsdir/Ac*
%changelog

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.