LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-22-2009, 12:05 AM   #1
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0
Posts: 219
Blog Entries: 2

Rep: Reputation: 41
Console fonts question: 0x0 = 0xC4?


I have been tinkering around with ncurses and have noticed something rather odd. In gbdfed and bitedit, they both show that the console font default8x16.psfu has the line character at 0xC4, however, when I wrote a small test program to create windows with ncurses it shows the character where the line that should be, at 0xC4. Now when I run gucharmap in X, under latin it shows at 0xC4. Also, a simple program to view the characters of a font I'm using in the console shows at 0xC4.

And after messing up one of my tty's yesterday trying to find the line character, I found that the line that should be at 0xC4 is printed when I use 0x0.

Is 0x0 the correct char to pass to wborder() to produce a line for the top and bottom of a window?

<Edit> Ok, I changed the console font to several different fonts and tested them running both mc and the ncurses test program I wrote. The last font I used was drdos8x16.psfu which mc showed it's borders correctly, but the test program did not. When I ran my character view program it didn't show a single border character.

Anyone know of anything that I could read to understand why mc shows a border when no border characters seem to exist in the font?

<Edit2>
I had modified a console font I've been working on and added the border characters. Now 0xC4 contains the correct line. My test program and mc work perfectly. However, ndn shows lqkxmj for the border characters. This is wierd...

Last edited by Mol_Bolom; 04-22-2009 at 01:50 AM.
 
  


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
Sata1.00 : exception Emask 0x0 sAct 0x0.... Hitboxx Fedora 8 01-30-2009 12:10 AM
[Console] an xterm type with ttf fonts as fonts ? frenchn00b Linux - Desktop 1 08-04-2007 04:32 PM
DWARF2 unwinder stuck at 0x0 rocket357 Linux - Security 4 04-15-2007 03:11 AM
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 11:11 AM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM


All times are GMT -5. The time now is 06:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration