Your message dated Tue, 04 Feb 2025 16:06:54 +0000
with message-id <[email protected]>
and subject line Bug#926702: fixed in linuxtv-dvb-apps 1.1.1+rev1500-2
has caused the Debian Bug report #926702,
regarding dvb-apps: alevt: Font size too small
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
926702: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926702
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dvb-apps
Version: 1.1.1+rev1500-1.1
Severity: normal
File: /usr/bin/alevt
Tags: patch upstream

The font size of alevt is very small on modern display sizes and
resolutions.

The same problem was reported on another distribution over 10 years
ago (https://bugzilla.redhat.com/show_bug.cgi?id=459294), but
apparently the patch never made it back upstream or to Debian. I've
rebased the patch provided there
(https://src.fedoraproject.org/rpms/alevt/blob/master/f/alevt-1.6.2-doublefont.patch)
against the current version and it still works (tested).

Interestingly, alevt.patch added this as a to-do item in 2010 (long
time ago, but *after* the patch above was already made) ...

--- linuxtv-dvb-apps-1.1.1+rev1457.orig/util/alevt/TODO 2011-12-08 
01:26:50.000000000 +1100
+++ linuxtv-dvb-apps-1.1.1+rev1457/util/alevt/TODO      2012-01-05 
22:23:33.000000000 +1100
-Hi, these are issues that I unfortunately cannot resolve myself:
+These are issues that I unfortunately cannot resolve myself:
[...]
+3. New BDF fonts for slightly bigger windows.
+    Those BDF fonts need to be edited so that they can be transformed by 
bdf2xbm.
-Uwe Bugla, February 11th, 2010.
+Uwe Bugla, February 14th, 2010.
--- ./util/alevt/alevt.1
+++ ./util/alevt-doublefont/alevt.1
@@ -21,6 +21,9 @@
 .TP
 .B \-cs -charset <latin-1/2/koi8-r/iso8859-7>
 character set
+.BR \-doublefont / \-df
+Instructs alevt to use double sized fonts.
+.TP
 .TP
 .B \-h -help
 print this page
--- ./util/alevt/exp-gfx.c
+++ ./util/alevt-doublefont/exp-gfx.c
@@ -15,7 +15,16 @@
     int c, int dbl, int _x, int _y, int sep)
 {
   int x,y;
-  unsigned char* src= (latin1==LATIN1 ? font1_bits : font2_bits);
+  unsigned char* src = double_font ? 
+			( (latin1==LATIN1) ? font1_bits : 
+			  ( (latin1==LATIN2) ? font2_bits : 
+			  ( (latin1==KOI8) ? font3_bits :
+			  ( (latin1==GREEK) ? font4_bits : /* fallback */ font1_bits) ) ) ) 
+			  :
+			( (latin1==LATIN1) ? font1d_bits : 
+			  ( (latin1==LATIN2) ? font2d_bits : 
+			  ( (latin1==KOI8) ? font3d_bits :
+			  ( (latin1==GREEK) ? font4d_bits : /* fallback */ font1d_bits) ) ) );
   int dest_x=_x*CW;
   int dest_y=_y*CH;
       
--- ./util/alevt/font.c
+++ ./util/alevt-doublefont/font.c
@@ -3,3 +3,14 @@
 #include "font2.xbm"
 #include "font3.xbm"
 #include "font4.xbm"
+ 
+#include "font1d.xbm"
+#include "font2d.xbm"
+#include "font3d.xbm"
+#include "font4d.xbm"
+ 
+int CW;
+int CH;
+int double_font = 0;
+int font_width;
+int font_height;
--- ./util/alevt/font.h
+++ ./util/alevt-doublefont/font.h
@@ -1,19 +1,31 @@
 #ifndef FONT_H
 #define FONT_H
 
-#include "fontsize.h" /* the #defines from font?.xbm */
+// #include "fontsize.h" /* the #defines from font?.xbm */
 
-#if font1_width != font2_width || font1_height != font2_height
-#error different font sizes.
-#endif
+//#if font1_width != font2_width || font1_height != font2_height
+//#error different font sizes.
+//#endif
 
 extern unsigned char font1_bits[];
 extern unsigned char font2_bits[];
 extern unsigned char font3_bits[];
 extern unsigned char font4_bits[];
 
-#define font_width font1_width
-#define font_height font1_height
-#define CW (font_width/32) /* pixel width of a character */
-#define CH (font_height/8) /* pixel height of a character */
+extern unsigned char font1d_bits[];
+extern unsigned char font2d_bits[];
+extern unsigned char font3d_bits[];
+extern unsigned char font4d_bits[];
+
+//#define font_width font1_width
+//#define font_height font1_height
+//#define CW (font_width/32) /* pixel width of a character */
+//#define CH (font_height/8) /* pixel height of a character */
+
+extern int CW;
+extern int CH;
+extern int double_font;
+extern int font_width;
+extern int font_height;
+
 #endif
--- ./util/alevt/main.c
+++ ./util/alevt-doublefont/main.c
@@ -22,6 +22,12 @@
 static int ttpid = -1;
 u_int16_t sid = 0;
 
+/* Double font size related variables */
+extern int double_font;
+extern int font_width;
+extern int font_height;
+extern int CW;
+extern int CH;
 
 static void usage(FILE *fp, int exitval)
 {
@@ -33,6 +39,7 @@
 	    "    -ch -child <ppp.ss>\t\t(none)\n"
 	    "    -cs -charset\t\tlatin-1\n"
 	    "    <latin-1/2/koi8-r/iso8859-7>\n"
+	    "    -doublefont\n"
 	    "    -h -help\n"
 	    "    -o <outfile>\t\t(none;dvb only)\n"
 	    "    -p -parent <ppp.ss>\t\t900\n"
@@ -127,6 +134,7 @@
 	{ "-sid", "-s", 1 },
 	{ "-ttpid", "-t", 1 },
 	{ "-vbi", "-v", 1 },
+	{ "-doublefont", "-df", 0 },
     };
     int i;
     if (*ind >= argc)
@@ -159,6 +167,12 @@
     char *arg;
     sid = 0;
 
+    font_width  = 288;
+    font_height = 128;
+
+    CW = (font_width/32);
+    CH = (font_height/8);
+
     setprgname(argv[0]);
     fdset_init(fds);
 
@@ -189,6 +203,13 @@
 		else
 		    fatal("bad charset (not latin-1/2/koi8-r/iso8859-7)");
 		break;
+	    case 10:	// Doublefont
+		double_font = 1;
+		font_width  = 576;
+		font_height = 256;
+		CW = (font_width/32);
+		CH = (font_height/8);
+		break;
 	    case 4: // help
 		usage(stdout, 0);
 		break;
--- ./util/alevt/Makefile
+++ ./util/alevt-doublefont/Makefile
@@ -33,9 +33,10 @@
 alevt-cap: $(COBJS)
 	$(CC) $(OPT) $(COBJS) $(LDFLAGS) -o alevt-cap $(EXPLIBS)
 
-font.o: font1.xbm font2.xbm font3.xbm font4.xbm
-fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm
+font.o: font1.xbm font2.xbm font3.xbm font4.xbm font1d.xbm font2d.xbm font3d.xbm font4d.xbm
+fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm font1d.xbm font2d.xbm font3d.xbm font4d.xbm
 	fgrep -h "#define" font1.xbm font2.xbm font3.xbm font4.xbm >fontsize.h
+	fgrep -h "#define" font1d.xbm font2d.xbm font3d.xbm font4d.xbm >> fontsize.h
 
 font1.xbm: bdf2xbm $(FONT)-latin-1.bdf
 	./bdf2xbm font1 <$(FONT)-latin-1.bdf >font1.xbm
@@ -49,6 +50,18 @@
 font4.xbm: bdf2xbm vtxt-iso8859-7.bdf
 	./bdf2xbm font4 <vtxt-iso8859-7.bdf >font4.xbm
 
+font1d.xbm: font1.xbm
+	/usr/bin/convert -filter Point -resize 200% font1.xbm font1d.xbm
+
+font2d.xbm: font2.xbm
+	/usr/bin/convert -filter Point -resize 200% font2.xbm font2d.xbm
+
+font3d.xbm: font3.xbm
+	/usr/bin/convert -filter Point -resize 200% font3.xbm font3d.xbm
+
+font4d.xbm: font4.xbm
+	/usr/bin/convert -filter Point -resize 200% font4.xbm font4d.xbm
+
 bdf2xbm: bdf2xbm.c
 	$(HOSTCC) bdf2xbm.c -o bdf2xbm
 
@@ -53,7 +66,7 @@
 	$(HOSTCC) bdf2xbm.c -o bdf2xbm
 
 clean:
-	rm -f *.o page*.txt a.out core bdf2xbm font?.xbm fontsize.h
+	rm -f *.o page*.txt a.out core bdf2xbm font?.xbm font?d.xbm fontsize.h
 	rm -f alevt alevt-date alevt-cap
 
 rpm-install: all
--- ./util/alevt/xio.c
+++ ./util/alevt-doublefont/xio.c
@@ -122,12 +122,22 @@
     GC gc;
     int i;
     unsigned char *font_bits;
-    switch(latin1) {
-        case LATIN1: font_bits=font1_bits; break;
-        case LATIN2: font_bits=font2_bits; break;
-        case KOI8: font_bits=font3_bits; break;
-        case GREEK: font_bits=font4_bits; break;
-        default: font_bits=font1_bits; break;
+    if(!double_font) {
+        switch(latin1) {
+            case LATIN1: font_bits=font1_bits; break;
+            case LATIN2: font_bits=font2_bits; break;
+            case KOI8: font_bits=font3_bits; break;
+            case GREEK: font_bits=font4_bits; break;
+            default: font_bits=font1_bits; break;
+        }
+    } else {
+        switch(latin1) {
+            case LATIN1: font_bits=font1d_bits; break;
+            case LATIN2: font_bits=font2d_bits; break;
+            case KOI8: font_bits=font3d_bits; break;
+            case GREEK: font_bits=font4d_bits; break;
+            default: font_bits=font1d_bits; break;
+        }
     }
 
     xio->font[0] = XCreateBitmapFromData(xio->dpy, xio->root,

--- End Message ---
--- Begin Message ---
Source: linuxtv-dvb-apps
Source-Version: 1.1.1+rev1500-2
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
linuxtv-dvb-apps, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated linuxtv-dvb-apps package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 04 Feb 2025 16:37:29 +0100
Source: linuxtv-dvb-apps
Architecture: source
Version: 1.1.1+rev1500-2
Distribution: unstable
Urgency: low
Maintainer: Debian VDR Team <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 715667 715773 716413 779520 826072 926702 928331 1075227
Changes:
 linuxtv-dvb-apps (1.1.1+rev1500-2) unstable; urgency=low
 .
   * Team upload.
 .
   [ Jonathan McCrohan ]
   * d/patches/: Drop uk-CrystalPalace.diff; superseded by
     dtv-scan-tables_0+git20130920.f61d5ec-1
   * d/: Drop dvb-apps.bug-presubj; scan table bug reports should be reported
     against dtv-scan-tables package instead
   * d/watch: linuxtv-dvb-apps has been moved into the legacy section of the
     linuxtv.org downloads page; update watch file accordingly
 .
   [ Andreas Tille ]
   * Standards-Version: 4.7.0 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Fix Vcs fields
   * Fix gcc-14 build issue
     Closes: #1075227
   * Move libraries to multiarch dir
   * Reorder sequence of d/control fields by cme (routine-update)
   * Remove trailing whitespace in debian/changelog (routine-update)
   * watch file standard 4 (routine-update)
   * d/copyright: DEP5 + review
   * Add debian/TODO with potential new upstream source
   * Secure URI in watch file
   * Fix alevt icon in menus
     Closes: #928331
 .
   [ Bernhard Übelacker ]
   * Fix azap crash because of a strlen(0)
     Closes: #715667
   * Fix czap crash because of a strlen(0)
     Closes: #715773
   * Fix tzap crash because of a strlen(0)
     Closes: #716413
 .
   [ Andrew Siplas ]
   * Storing address inside int leads to segfault on 64-bit machine
     Closes: #779520
 .
   [ Frank Heckenbach ]
   * Fix program table overflow
     Closes: #826072
   * Adapt font size in alevt to modern screen sizes
     Closes: #926702
Checksums-Sha1:
 48175f3877360d9e086b986a105d29c34cc1956f 2229 
linuxtv-dvb-apps_1.1.1+rev1500-2.dsc
 d57540db2f15bc71ae37ad7e0fb7d715212cd671 22580 
linuxtv-dvb-apps_1.1.1+rev1500-2.debian.tar.xz
 0b99173afa5126f5469b5d2d04af0ed22cea70d1 7916 
linuxtv-dvb-apps_1.1.1+rev1500-2_amd64.buildinfo
Checksums-Sha256:
 eb3574c1b4a85c42ee47043ae57c8c57ce9559609a76cbff803a37e3f733ac25 2229 
linuxtv-dvb-apps_1.1.1+rev1500-2.dsc
 69c9c45a6adeb73eedd94a9447564e0c6e22fe2a2ebcc47660af2f15a6357aa9 22580 
linuxtv-dvb-apps_1.1.1+rev1500-2.debian.tar.xz
 6482a3e14777ac8f9b3697700f4380eefc1fe075e4838950a13fa4f318510e6d 7916 
linuxtv-dvb-apps_1.1.1+rev1500-2_amd64.buildinfo
Files:
 cbedb3fe2bedca62c9f22613859f0257 2229 video optional 
linuxtv-dvb-apps_1.1.1+rev1500-2.dsc
 8f781fc942b62491356a43a469bc38f0 22580 video optional 
linuxtv-dvb-apps_1.1.1+rev1500-2.debian.tar.xz
 7cda644bc3fd69682f05d82b81b99f2d 7916 video optional 
linuxtv-dvb-apps_1.1.1+rev1500-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmeiNMgRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtGcvQ//bU2m9jplKHQeZ/Y8A3CViPF0BECEuHFQ
V2Y7r6rjRVurCnes7XBkPBbYgaAhMrMhNdafpxbVnYhRwQMmkxUA3SuW4WDKwtvd
wl9hmlFw2H+cVcod9GwaYo5au68P5EmTbLjvMdpCMN7lQCChTyb94KrqG6ZWMsZ8
otL5pR6MCl3EzcpCUPVG6hruW2r7TWafsna9rlTUu926wJ9ro91Q4mjvhQeNPFDB
YXyrhvAbJHhNGAja3GZaZcZSRTdcoblacU6vFLzNDV9Q+dphx8p1obnfUMglmiW/
JbG7HlZ9mqxq+na/ORvcZc8qU5gLUoUjRagUtpzkfBuZEMCxTaXtE/aL87e+LErO
H7Ac9+uW7czvClAdGJAhgujppGCuK62kiFgcjbzrRU8NNESGRSQ8T3T6gFpsHzAP
rFsfg6jf9sYLPYh9cKvYeqq0wW+N48cOzTSjh8JqlYW+VMB5XwdPcJUDfvrkSwrC
JKiBgQTyTH0b2KPGjWl502n/K1I9ciX/XZvz54e73jLRaZTCZ5Vh5aEOVZXYMUn9
g7CERDnUThOP/DOEeGkcuL86RK9oQRVSohwOJbcbCvCpiZNCr9fhF1uiFBKHdUgM
GEL4/SE7yrhS5OMonOqMjsyZH/gRwDNLaunFyV57V1cm7c7iuXYCW/YWZGTud7Cn
bUBTiFB3wws=
=28j4
-----END PGP SIGNATURE-----

Attachment: pgpLFNQO1Wm6a.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
pkg-vdr-dvb-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-vdr-dvb-devel

Reply via email to