Hello community, here is the log from the commit of package int10h-oldschoolpc-fonts for openSUSE:Factory checked in at 2020-10-30 11:47:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/int10h-oldschoolpc-fonts (Old) and /work/SRC/openSUSE:Factory/.int10h-oldschoolpc-fonts.new.3463 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "int10h-oldschoolpc-fonts" Fri Oct 30 11:47:49 2020 rev:3 rq:844872 version:2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/int10h-oldschoolpc-fonts/int10h-oldschoolpc-fonts.changes 2019-01-24 14:14:48.415265988 +0100 +++ /work/SRC/openSUSE:Factory/.int10h-oldschoolpc-fonts.new.3463/int10h-oldschoolpc-fonts.changes 2020-10-30 11:48:04.405728884 +0100 @@ -1,0 +2,15 @@ +Thu Oct 29 11:37:28 UTC 2020 - Jan Engelhardt <jeng...@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. + +------------------------------------------------------------------- Old: ---- ultimate_oldschool_pc_font_pack_v1.0.zip New: ---- oldschool_pc_font_pack_v2.0_ttf.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ int10h-oldschoolpc-fonts.spec ++++++ --- /var/tmp/diff_new_pack.5MFqdL/_old 2020-10-30 11:48:05.401729765 +0100 +++ /var/tmp/diff_new_pack.5MFqdL/_new 2020-10-30 11:48:05.401729765 +0100 @@ -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 @@ %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 ++++++ ratio.txt ++++++ --- /var/tmp/diff_new_pack.5MFqdL/_old 2020-10-30 11:48:05.461729819 +0100 +++ /var/tmp/diff_new_pack.5MFqdL/_new 2020-10-30 11:48:05.461729819 +0100 @@ -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 @@ 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 @@ 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.