LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2014, 10:19 PM   #1
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,326
Blog Entries: 1

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
bitmap fonts + xterm


So I'm trying to create a few custom bitmap fonts. From the fntcol16.zip with respects to the VGA-ROM.F08 font of lore. I'm also trying to make a youtube video of it. But I need to blow up the font to 24x48 to have it look okay at the default 640x360 youtube resolution for the 1080p that is the source video. And I am failing to get a bdf that works for xterm at those bloated resolutions.

Code:
xterm: Selected font has no non-zero width for ISO-8859-1 encoding
The bdftopcf conversion succeeds. The fc-cat lists the font after moving it to /usr/share/fonts/X11/misc/ and running fc-cache -f -v. But I get an error when I try to use the 16x32 variant with xterm. The 8x16 variant through similar means works just fine.

I'm probably miscalculating the SWIDTH or some bdf line is missing or wrong. But I'm at a loss. The fontutils.c code for checkFontInfo is triggering the error, but I'm a little rusty to identify why. Anyone know a working 16x32 bitmap font with a pcf or bdf file? Or 24x48 preferred.

$ xterm -fa <name> -fs 16
works for the 8x16 version

$ xterm -fa <name> -fs 32
xterm: Selected font has no non-zero width for ISO-8859-1 encoding

The hex2bdf options seems a little 8x16 centric so I've resorted to building my own bdf file for the larger fonts. Or trying to at least.
 
Old 05-31-2014, 05:08 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,326
Blog Entries: 1

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Some changes to the case of terms in my resultant bdf. But still no joy. I've been looking at the unicode and iso specifications and it appears that only 0x00-0x7F aka 0-127 characters are supported in the 10646-1 spec. Where VGA-ROM.F08 provides 0x00-0xFF aka 256 characters. And the larger variants seem to require square bitmap glyphs. So I'll keep fiddling I guess and looking for alternatives to xterm.

I just want to stretch a bitmap font to 3x's it's size, seems like a simple thing on the surface. And something soon to be required if 4k screens become the norm on the same sized screens. I guess I should have named the thread "LARGE" bitmap fonts + xterm.
 
Old 06-03-2014, 10:15 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,326
Blog Entries: 1

Original Poster
Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Programmer error it seems.

xterm: Selected font has no non-zero width for ISO-8859-1 encoding

was quite literal. My reverse engineering of the BDF format failed to notice that the ENCODING # below STARTCHAR U+FFFF also incremented. So I guess all the chars were encoded to zero, so the no non-zero error would be true. I have successfully blown up the 8x16 bitmap font to 16x32.

So my < 400 line bash script should be able to convert all the fonts in the fntcol16.zip collection to linux usable fonts. Which seems to be about 280 of them. And expand the 8x8 F08 font in question to 24x48 pixels for purposes of youtube. Now to learn more about the xlsfonts side of things probably through mkfontdir or mkfontscale to convert the pcf fonts to selectable fonts from xfontsel. Perhaps moding the 8x16 font to use the stargate ancients characters would prove interesting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I see all bitmap fonts? Mr. Alex Linux - Software 9 02-24-2011 05:54 AM
XTerm(241) support for truetype fonts and method of changing XTerm font. ajassat Linux - Software 2 08-19-2009 01:01 PM
A frontend to change the fonts of xterm/mrxvt using the ~/.fonts folder ? frenchn00b Linux - General 1 05-28-2008 01:28 PM
Bitmap fonts, but not Helvetica mschutte Debian 2 09-18-2005 11:41 AM
Installing bitmap fonts on wine 20050725 ekolis Linux - Software 0 08-22-2005 11:39 AM


All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration