diff --git a/int10h-oldschoolpc-fonts.changes b/int10h-oldschoolpc-fonts.changes index 9ce5279..9beb90e 100644 --- a/int10h-oldschoolpc-fonts.changes +++ b/int10h-oldschoolpc-fonts.changes @@ -4,6 +4,14 @@ Thu Oct 29 11:37:28 UTC 2020 - Jan Engelhardt - 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 diff --git a/int10h-oldschoolpc-fonts.spec b/int10h-oldschoolpc-fonts.spec index 1d5c635..c61a5b6 100644 --- a/int10h-oldschoolpc-fonts.spec +++ b/int10h-oldschoolpc-fonts.spec @@ -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 diff --git a/ratio.txt b/ratio.txt index a5f3428..c9aee79 100644 --- a/ratio.txt +++ b/ratio.txt @@ -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): + + + + + + + Px437 IBM VGA 9x16 + + + + matrix + + 0.73 + 0 + 0 + 1 + + + + + ~/.fonts + + + +== 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.