LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2003, 05:30 PM   #1
Filias Cupio
LQ Newbie
 
Registered: Aug 2003
Location: New Zealand
Distribution: Debian
Posts: 6

Rep: Reputation: 0
Font problem with "dia" (Debian, Xfree 4.3)


I can't get "dia" working with fonts on my system (Debian 3.0, with a non-Debian-packaged XFree 4.3.0 install (.deb unavailable, needed for my video hardware.)) (I've tried xfig, and after 15 minutes I loathe the user interface.)

I've tried both dia 0.88.1 (standard version with Debian 3.0) and dia 0.91 (a backport from www-users.cs.umn.edu/~sdier/debian/updates/wup)

With dia 0.88, when I first try to enter text I get a pop-up "Warning no X Font for Courier found, using fixed instead." I've tried changing font, but none of the others work either. The text is readable, but:
* Is always the same (small) size and style
* On export to .eps, the font comes out correct, but cropped incorrectly.
I.e. the fonts display incorrectly but are saved correctly, making it exceedingly hard to compose any diagrams with text.

With dia 0.91, there are no error messages, but all characters are about 1 pixel each. Exported to .eps, the characters are still 1 pixel each.

I have followed the procedure in ww w.akos.uklinux.net/deuglification/ but this didn't help. Here are a few extracts to show what I've done with this:

$ cd /usr/local/share/fonts/
$ ls -F
dia/ ttfonts/
$ ls ttfonts | head
ahronbd.ttf
andlso.ttf
arial.ttf
arialbd.ttf
arialbi.ttf
ariali.ttf
ariblk.ttf
artrbdo.ttf
artro.ttf
cmex10.ttf
$ ls dia
fonts.dir fonts.dir.old fonts.scale
$ head dia/fonts.dir
51
../ttfonts/ariali.ttf -Adobe-Helvetica-medium-o-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/arial.ttf -Adobe-Helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/arialbd.ttf -Adobe-Helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/arialbi.ttf -Adobe-Helvetica-bold-o-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/courbd.ttf -Adobe-Courier-bold-r-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/courbi.ttf -Adobe-Courier-bold-o-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/couri.ttf -Adobe-Courier-medium-o-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/cour.ttf -Adobe-Courier-medium-r-normal--0-0-0-0-p-0-iso8859-1
../ttfonts/times.ttf -Adobe-Times-medium-r-normal--0-0-0-0-p-0-iso8859-1

$ grep -C FontPath /etc/X11/XF86Config-4
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/local/share/fonts/ttfonts/"
FontPath "/usr/local/share/fonts/dia/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
EndSection

On exiting from either version of dia, I get the (possibly irrelevant) message:

** (dia:658): CRITICAL **: file app_procs.c: line 536 (app_exit): assertion `!app_exit_once' failed

(dia:658): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with gtk_object_sink() after a normal
reference is obtained with g_object_ref().

(dia:658): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with gtk_object_sink() after a normal
reference is obtained with g_object_ref().

(dia:658): Gtk-WARNING **: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with gtk_object_sink() after a normal
reference is obtained with g_object_ref().
 
Old 11-14-2003, 05:23 AM   #2
seneca
Member
 
Registered: Feb 2003
Location: Europe
Distribution: Debian
Posts: 45

Rep: Reputation: 15
I'm not sure if it helps but Dia 0.91 works here on Debian. I started Dia and then "FIel -> New -> T -> click into the document -> right-click -> dialogs -> characteristics (not sure about its english translation here) -> Font size -> 2.00 (for example) -> OK"

Seems to work. If you still have problems, try to make a symbolic link ~/.fonts to your font directory /usr/local/share/fonts/. Gnome seems to need that on some systems for TT fonts.

Hope this helps.
 
Old 11-15-2003, 06:29 PM   #3
Filias Cupio
LQ Newbie
 
Registered: Aug 2003
Location: New Zealand
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
The stuff with changing font size I had already tried.

I have now tried the ".fonts" soft link, and it doesn't make any difference. Tried with Dia 0.88 and 0.91, linking to .../fonts or to .../fonts/dia.

I have found that in Dia 0.91 when I bring up the font selection window (rt-click on text, dialog->properties ->Font=other fonts, it comes up with a font family selection window that correctly previews the fonts, so Dia is getting correct fonts at some level.
 
Old 11-16-2003, 02:42 AM   #4
seneca
Member
 
Registered: Feb 2003
Location: Europe
Distribution: Debian
Posts: 45

Rep: Reputation: 15
Well, the soft link was supposed to let your font selector display your TT fonts correctly.

Try to look for "dia and xfree 4.3" or "fonts and xfree 4.3". A hint may be this. This is my best guess since I can export to *.eps without problems and ggv displays my Arial Font correcty with xfree 4.2.1-12.1

Sorry.
 
  


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
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 07:11 AM
"Skin not found" problem from installing Mplayer in Debian/Sarge !!! Blue Jacket Linux - Software 2 10-05-2005 02:58 AM
Debian Boot Up Problem - stuck at "BR" & "I" jc70417 Debian 2 08-30-2005 05:36 PM
"sar" and "iostat" equivalents on Debian? aditya_shah Debian 8 08-02-2004 12:53 AM
Could not init font path element. Could not find default font "fixed" SidA Red Hat 0 06-19-2004 09:42 PM


All times are GMT -5. The time now is 11:53 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