Re: Tiny font workaound... maybe?

"Adrian E. Feiguin" <[email protected]> Tue, 22 Feb 2005 16:38:44 -0800
Newsgroups gmane.comp.scigraphica.gtkextra
Message-ID <[email protected]>
Actually, this should be easy (my first version of gtkextra-2 didin't 
have any pango code in it). All you have to do is replacing the 
drawstring code in gtkplotgdk.c, and gtk_plot_text_get_size in 
gtkplot.c. That should make it.
Anyway, I'm a little stubborn :-), and I would like to see a solution to 
the pango issue.
Saludos,
<ADRIAN>

MQ wrote:

>Hey Adrian,
>
>Yes, you are correct about how I've pasted the gtkextra1 code using
>preprocessor code. I have concentrated my efforts on the gtkplot widgets
>since right now they are the ones that I need access to. I have not checked
>any of the other gtkextra widgets but I can do that tomorrow when I'm back
>at work. One thing I don't understand is why the Gtk widgets don't seem to
>be affected. I have compiled code linking to gtk 2.6.x and all widgets
>display fine. I have linked to gtk for a while but I have never worked with
>the actual code so I'm unfamiliar with how the widget design works but I'm
>learning quite a bit from gtkextra.
>
>My first steps tomorrow will be to confirm that the changes I did actually
>work. I tried them out but it seemed too good to be true :), so I'm going to
>be a little more thorough. If this effort works I would like to submit this
>to you guys for evaluation and to see what you think (I welcome all
>ideas/comments/etc). I need to get my project up and running but I am
>intrigued by the issue. After that I think we can try to organize exactly
>what the steps should be to backtrace this problem. Like I said above, I'm
>not familiar with Pango but with some help I think I might be able to
>dedicate time to this.
>
>Al,
>when you have noticed the tiny font issue, has it been with gtkextra widgets
>or other widgets and gtk based applications also?
>
>-Marco
>
>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]]On Behalf Of
>Adrian E. Feiguin
>Sent: Tuesday, February 22, 2005 6:29 PM
>To: [email protected]
>Cc: Al Hooton; [email protected]
>Subject: Re: [gtkextra] Tiny font workaound... maybe?
>
>
>Hi Al, Marco, everybody,
>
> I guess you've done something like
>
>#ifdef WITH_PANGO
> ... copy and paste code from gtkextra-1
>#else
> ... gtkextra-2 code with pango
>#endif
>
>Tell me something, though: do gtk widgets with labels in them (say,
>buttons) appear with tiny fonts, or everything is fine with them and the
>problem is only in gtkplot. We have to figure out the roots of the
>problem and find a definitive solution. If you have some spare time in
>your hands, do you think you can try to solve this puzzle?
>
>Thanks!!!
><ADRIAN>
>
>[email protected] wrote:
>
>  
>
>>Al,
>>
>>I think I might be onto something here. I didn't mean to completely rework
>>    
>>
>the font interface, I think moving forward and using Pango is a great idea,
>unfortunately the tiny font bug isn't in my domain. What I have done so far
>is replaced a (surprisingly) few functions and definitions that allowed me
>to implement the string display routines from gtkextra1 based on the GdkFont
>primitives. I am using preprocessor code to tell gtkextra to build using the
>non-pango routines. Although it is not clean right now I think it can be
>reorganized in a much more professional way once I've tested all the
>examples. I'm also trying to test it on other computers to confirm that it's
>not just my imagination :).
>  
>
>>I must give a lot of credit to the great design built into gtkextra that
>>    
>>
>made it (so far) quite simple to implement the older routines. So while code
>using this mod will not be 100% gtk2 compliant it will get by without the
>gnome-settings being run. I'll update you as soon as I have any more
>progress (good or bad).
>  
>
>>-Marco
>>
>>
>>
>>
>>    
>>
>>>	Marco,
>>>
>>>	I started looking into this, and abandoned it after about a day of
>>>work.  The changes are just too significant and widespread.  You've got
>>>to make some fundamental changes all across gtkextra2 if you want to
>>>backport it gtk/gdk 1.x.  Another possible way is to change gdk 2.x to
>>>not use pango, but this would also require widespread non-trivial
>>>changes.  The conclusion I quickly came to is that, starting with the
>>>2.0 versions of these packages, pango dependency is essentially a given.
>>>
>>>	A different approach would be for you to use gtkextra1, which you can
>>>still get out CVS, if it works for you.  Of course, that means you're
>>>definitely back on gtk 1.x.
>>>
>>>	After digging in for a while, I came to the conclusion that running
>>>gnome-settings-daemon to sync things up between KDE and gnome was a lot
>>>easier, even though it's a not-pretty hack.
>>>
>>>-Al
>>>
>>>
>>>On Tue, 2005-02-22 at 16:15 +0000, [email protected] wrote:
>>>
>>>
>>>      
>>>
>>>>I know this goes against the current development direction of gtkextra2
>>>>        
>>>>
>but in
>  
>
>>>>        
>>>>
>>>the interest of bypassing the gnome bug that causes tiny fonts I was
>>>      
>>>
>thinking of
>  
>
>>>maybe returning to some basics. Has anyone tried to draw a string onto a
>>>      
>>>
>canvas
>  
>
>>>using the gdk (older) primitives? for example gdk_draw_string()? If anyone
>>>      
>>>
>has
>  
>
>>>some ideas on implementing this until gnome fixes their problem it will be
>>>greately appreciated. I unfortunately can't depend on gnome for the
>>>      
>>>
>project I'm
>  
>
>>>developing and it's unfortunate that Pango is affected in such a way.
>>>
>>>
>>>      
>>>
>>>>Thanks!
>>>>
>>>>--
>>>>Marco
>>>>
>>>>
>>>>-------------------------------------------------------
>>>>SF email is sponsored by - The IT Product Guide
>>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>>Discover which products truly live up to the hype. Start reading now.
>>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>>_______________________________________________
>>>>Scigraphica-gtkextra mailing list
>>>>[email protected]
>>>>https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra
>>>>
>>>>!DSPAM:421b5b4b16952009331003!
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>
>>>
>>>Al Hooton
>>>al-at-hootons-dot-org
>>>
>>>========
>>>Maintainer of the linux-based open-source project Parapin.
>>>http://www.sf.net/projects/parapin/
>>>========
>>>
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real users.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>>_______________________________________________
>>>Scigraphica-gtkextra mailing list
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra
>>>
>>>
>>>      
>>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Scigraphica-gtkextra mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra
>>
>>.
>>
>>
>>
>>    
>>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Scigraphica-gtkextra mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra
>
>.
>
>  
>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click