Font and PS Problems

2001-12-20 Thread Holger . Zuleger

Hi,

I have two problems using dia 0.88.1.

a)
Since I upgrade my Linux operation system (and simultaneously to the new dia
version) I get an error message if I want to select a font other than the
default font e.g. helvetica):
 Warning no X font Helevetica found,
 using -acobe-courier-medium-r-normal-*-%d-.. instead

The command
 $  xlsfonsts | grep helvetica
show me a long list of  helevtica fonts, so in my opinion the fonts are
installed.
How can find dia the X-fonts? Is there a environment variable that point to the
fonts directory or something similar?

b)
I export a diagram to encapsulated postscript and want to embedd this in an
groff formated document. The grops program (part of the groff formating system)
print out an error message like "PostScript file non-conforming because length
of line exceeds 255". I don´t know if there a "standard", limiting the length of
an postscript line. The question here is: Is it possible to change the PS-Plugin
to generate postscript files with lines less than 255?

At last I have an idee for a additional connection point for most of the
objects. Currently all of the objects have connection points at the border of
the object.
The problem is: If you connect two objects with connection points at the border,
and you rearrange the objects (for example from northeast to northwest) you need
to transfer the connection points at both objects.

 +---+   +---+
 |  ||
|
 +---+   +---+
 \ /
   +-+  +-+
   | |   ||
   +-+  +-+
If the objects have an connection point at the center of it, and both objects
are above (Objectmenu: "Bring to front")  the connecting line you can rearrange
both objects together, without transfer the connection points. The only
requirement is: The object must have a center connection point, and the
connecting lines must be below the connected object. Ok, the objects themselves
can´t be transparent (draw background must be yes).

Regards,

Holger



___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list



Re: new diagram tree patch

2001-12-20 Thread Hans Breuer

Hi Jose,
sorry for not answering earlier. I've applied your patch to
my local tree, but it was the missing ChangeLog entry, what
stopped me from commiting to cvs. 
Also there was some probably minor glitch with :

patching file `app/diagram_tree_menu_callbacks.c'
Hunk #2 FAILED at 74.
misordered hunks! output would be garbled
Hunk #3 FAILED at 24.
Hunk #4 FAILED at 55.
Hunk #5 FAILED at 69.
4 out of 5 hunks FAILED -- saving rejects to
app/diagram_tree_menu_callbacks.c.rej

I think I have corrected it by hand, but you should
look into it after it's commited.

Hans

At 00:08 11.12.01 +0100, Jose A. Ortega Ruiz wrote:
>
>hi,
>
>i'm attaching yet another patch adding new functionality to the
>diagram tree thing, namely:
>
>- single click on a object tree node now selects the object in the
>  diagram. double click, in addition, raises its window.
>
>- new preference ("Remember last size" in the preferences tab) to
>  remember the last tree window size as the default
>  (poor-man's-session-management :-).
>
>- new popup menu commands:
>* Hide this type: makes invisible (in the tree) all objects of
>  this type (useful to avoid clutter by uninteresting objects
>  such as connectors, and the like).
>* Show object type. hidden types are listed in this
>  submenu. click on any of the to bring it back.
>
>- preferences toggle ("Remember hidden types") to save the list of
>  hidden types as a preference.
>
>that's it. i think the functionality of the tree window is now quite
>complete, but for the absence of multiple object selection (i'll work
>on it in the next days). nevertheless i'm open to any suggestion on
>your side :-)
>
>IMPLEMENTATION NOTE: i've tweaked preferences.c to make PREF_STRING
>work. the functionality was almost there, and i've simply put the code
>related to PREF_STRING out of the '#ifdef PREF_CHOICE' guard, changed
>expressions of the form *(char *) to *(char **) (since a string
>preference is stored as a char *), and make it save the string value
>in the diarc file using double quotes, to make the parser happy. it
>works for me (i use it to store the list of hidden types), but maybe
>the preferences.c author would like to have a look at it?
>


 Hans "at" Breuer "dot" Org ---
Tell me what you need, and I'll tell you how to 
get along without it.-- Dilbert
___
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list