Welcome Guest.   Make a donation to an author on the site October 20, 2014, 04:52:30 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Dina programming font for X11 use  (Read 12160 times)
bpcw001
Honorary Member
**
Posts: 11

View Profile Give some DonationCredits to this forum member
« on: March 12, 2007, 07:36:43 AM »

Hi,

recently came across the Dina programming font and for me it's the best font
for coding ever.
It is perfect for Windows, however, I'm using Linux and would like to to ask
if there is any way to make this beautiful font work in X11 and KDE/Gnome.

AFAIK, X11 does not handle Windows .FON files.
Could you point me in some direction as to how to make Dina available on X11/KDE/Gnome?

Thank you

bpcw
Logged
bpcw001
Honorary Member
**
Posts: 11

View Profile Give some DonationCredits to this forum member
« Reply #1 on: March 13, 2007, 04:29:20 AM »

Hi,

just wanted to share with you that I've started messing around with Dina.FON in Linux.
With fnt2bdf (from Wine) I was able to create the .BDF files corresponding to each size and weight provided by Dina.FON

After that, I converted the BDF files with bdftopcf to obtain .PCF files for use with X.

However, something goes awry here since, while I can see the .PCF font in X itself, it does not show up font selection
dialogs of KDE or Gnome. And this is the case because fontconfig does not pick those fonts up.

I read somewhere that fontconfig will pick up bitmapped fonts only if they are encoded either iso8859 or iso10646.

Well, Dina has Windows encoding, so I tried to reencode the .BDFs to iso8859 with fontforge before converting them to .PCF, but fontconfig still doesn't pick up Dina.

I also tried to let fontconfig just pick up the .BDF file. Then, Dina shows up in Gnome's or KDE's font selection dialogs, but the font that is then actually chosen
is not Dina, but some monospace substitute.


I can use other bitmapped fonts (like Clean) in X, KDE and Gnome without any problems.

Anybody has an idea ??

Thanks

bpcw001

Logged
mouser
First Author
Administrator
*****
Posts: 33,570



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: March 13, 2007, 04:40:39 AM »

I don't have any idea to help, but i am very interested in any solution you find.. Please keep us informed.
Jibz is a very nice guy, maybe send him an email and ask him for some help -- it's been too long since he stopped by!
Logged
bpcw001
Honorary Member
**
Posts: 11

View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 13, 2007, 08:40:05 AM »

Hi,

thanks for your response.
I'll definitely post a solution to using Dina with Linux if I ever manage to find one, but the situation looks pretty bleak right now  Sad
Unfortunately, my knowledge of font internals in general and Linux font specials (X font system, fontconfig etc) is quite limited.

So, I might actually contact Jibz in order to get some qualified input.

bpcw001


Logged
Jibz
Moderator
*****
Posts: 937



Cold Warrior

View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: March 13, 2007, 12:41:52 PM »

A while back I received the attached conversions for X11 and Mac, kindly contributed by Jamie Burns.

I was planning on including them in the package, but was hoping to find a reliable way to perform the conversion myself to make future updates easier -- but like you without much luck.

* Dina for X11.zip (44.12 KB - downloaded 637 times.)
* Dina for Mac.zip (41.5 KB - downloaded 892 times.)
Logged

"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu
bpcw001
Honorary Member
**
Posts: 11

View Profile Give some DonationCredits to this forum member
« Reply #5 on: March 14, 2007, 04:28:11 AM »

Hi Jibz,

thanks for your input and the link to the files.
The .BDF files are exactly the ones you get when taking apart the Windows Dina.FON file with fnt2bdf.

Both .BDF and the bdftopcf-converted .pcf and .pcf.gz files will work in X itself. That's the good news.

Bad news is that fontconfig (which is responsible for serving fonts to Desktop Environments like Gnome or KDE)

- picks up the .BDF file and hence Dina displays as choosable font in KDE/Gnome font selection dialogs, but upon choosing
  Dina, a different substitute font is actually used instead

- does not pick up the .pcf or .pcf.gz file at all

Those fontconfig issues are quite known amongst those still willing to use bitmapped fonts in Linux.
The creators of fontconfig apparently decided to no longer give bitmap fonts an appropriate treatment in their software.
They seem to think that nobody uses them any more and everyone wants a blurred, antialiased TrueType desktop (ugh!)

Maybe I can figure out an appropriate configuration of fontconfig, but I'm slowly giving up on this one.

Thanks for your help anyway

bpcw001


Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: March 14, 2007, 05:05:36 AM »

Perhaps google and some manual font strings could help, I found some reference to VIM font config (perhaps googling linux+vim+dina might help?). But I've never really messed with that myself, it seems too messy and I don't use GUI linux anyway.

I've never really understood the whole cleartype/antialiased fonts thing, it looks smudgy and annoying. Even when done "right". And this applies to both CRT and TFT monitors... strains my eyes rather than relieve them.
Logged

- carpe noctem
bpcw001
Honorary Member
**
Posts: 11

View Profile Give some DonationCredits to this forum member
« Reply #7 on: March 14, 2007, 11:53:46 AM »

Hi f0dder,

thanks for your input.

However, the remaining problems are of different nature. So let me reiterate:

Dina can be made to work in X. Hence any application that uses X's font system or an own font customization mechanism can be configured to use Dina.
This is the case with VIM, EMACS and the genuine XTerm.

Unfortunately, not everything running in X uses X's own font system. There is an application called "fontconfig", which sits on top of X and has its own mechanism to
serve fonts to applications which don't use raw X or their own font customization mechanism, but rely on GTK or QT, such as the popular desktop environments
GNOME and KDE and all applications based on their libraries.

The problem is with the "fontconfig" application which does not pick up Dina properly or even doesn't pick Dina up at all.
Thus, if fontconfig does not "see" Dina, GNOME and KDE applications will not be able to use Dina.

Hence, all this boils down to finding a proper configuration for the application "fontconfig" and/or finding out how a bitmapped font must be
crafted in order to be accepted by fontconfig.

Thanks for your attention.

bpcw001



Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.029s | Server load: 0.28 ]