LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-06-2004, 12:06 PM   #1
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
Enlightenment & fonts = pain!!


Hi all!!

I recently installed Enlightenment WM and I must say I really like it. The problem is that I really can't see the menu. The font used in almost all themes I tryed is so small, I can't see anything (i'm running at 1920x1440).
Does anybody know where I can change the font or make it bigger?? I've been searching through theme's folder without success and googleing didn't help either.

Many thnx
 
Old 10-18-2004, 04:28 AM   #2
nick_th_fury
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Slackware, NetBSD
Posts: 151

Rep: Reputation: 23
Ok look under
~/.enlightenment/themes/Theme_Name/textclasses.cfg

or sometimes:
~/.enlightenment/themes/Theme_Name/menustyles/menustyles.cfg

You'll usually find something like this in the text files:

__TCLASS __BGN
__NAME "MENUTEXT"
__NORMAL "tahoma/8"
__DRAWING_EFFECT __EFFECT_SHADOW
__FORGROUND_COLOR 196 196 196
__BACKGROUND_COLOR 0 0 0
__JUSTIFICATION 1023


Here's the important part:
__NORMAL "tahoma/8"

8 is the point size the font in this example is set to.
Increase the number, the larger it gets.
Once you save a change, you'll need to reload the theme, or restart e16.
As the change doesn't update till you do.

I have found enlightenmet to be harder than some, as the theme maker seems to have allot of flexibility in how they set up their theme.


Last edited by nick_th_fury; 10-18-2004 at 04:32 AM.
 
Old 11-16-2004, 01:16 PM   #3
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I've been pounding this problem for the past two weeks and I still can't change the menu text size. I'm using the Winter theme that is installed as default and there is no textclasses.cfg associated with it. I edit the menustyles.cfg file and change the font size to something more readable and when I restart Enlightenment the file has been replaced by one dated June 15. Before you ask, yes, I saved my changes. What is overriding my changes and how do I stop it?

Also, what config file do I look in to change the titlebar color? In the Winter theme, there isn't enough contrast between focused and unfocused windows. I'd prefer to make changes to this theme because I haven't found any other themes that I like.

Thanks,
Kent

Last edited by oxleyk; 11-16-2004 at 01:33 PM.
 
Old 11-16-2004, 02:45 PM   #4
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
Well, I discovered that I can copy a textclasses.cfg file from a theme that I like into my Winter directory and the text changes. Now, how do I change the titlebar text?

Kent
 
Old 11-25-2004, 01:11 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Good question oxleyk... I'm going to start on that one right now.

As for the menu text, I didn't have anything relating to what nick_th_fury suggested. I did have a:

/usr/X11R6/share/enlightenment/themes/winter/menustyles/menustyles.cfg

which made refrenece to 7 point vera font. Changing that had no effect. What you need to edit is:

~/.enlightenment/cached/cfg/.usr.X11R6.share.enlightenment.themes.winter.menustyles.cfg.preparsed

You can leave the /usr/X111R6 one alone...

Can you imagine how small 7 point vera looks on a 14 inch laptop LCD running at 1024x768? Damn... I've been using Enlightenment for 2 days now and my eyes literally hurt. I think the devs should REALLY consider making a menu selection for fonts. Atleast with fluxbox, you can enable anti-aliasing and that increases font size significantly...

I'll post back with info about the title bars. Those are still horibly small. I would assume it's a file in the same cache folder in your home directory....

Yep... The file for Title Bars is:

~/.enlightenment/cached/cfg/.usr.X11R6.share.enlightenment.themes.winter.borders.cfg.preparsed

Those files have alot of empty space at the top. Just scroll down a bit to get to the info. I changed everything that said "7" point font to "12" and it looks nice with the exception of the title bars. If you bump your font up too much, the bottom of your text gets cut off. Your title bar sizes are defined as well so they don't adjust to accomodate your new text size. You'll have to manually change those as well. It looks like 11 point vera might just fit into the standard Winter theme title bars...

This post is the second listing on a google search of "fonts enlightenment" so hopefully it will get some exposure...

Last edited by jong357; 11-25-2004 at 01:48 PM.
 
Old 11-25-2004, 07:52 PM   #6
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
Thanks for your input! That solved the problem! I changed the size to 10 and that's a big improvement.

Are there similar size changes for the Min/Max/Close buttons in the upper right corner? If there are, what would I look for?

Kent
 
Old 11-25-2004, 09:06 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
O.k.... nick_th_fury was right. I've come to realize just how heavily Enlightenment uses a caching system.... For the default Winter theme, the files to edit are:

/usr/X11R6/share/enlightenment/themes/winter/menustyles/menustyles.cfg

That will let you change the menu fonts

/usr/X11R6/share/enlightenment/themes/winter/borders/common/border.cfg

That will let you change the Title bar text

/usr/X11R6/share/enlightenment/themes/winter/borders/common/images

That contains your ICONIFY, MAX and CLOSE buttons

/usr/X11R6/share/enlightenment/themes/winter/borders/DEFAULT/border.cfg

That will let you change the position and size of your ICONIFY, MAX and CLOSE buttons

The last one wasn't too fun at first, but once you figure it out, it's not bad... I'll run thru it and do the best I can. There are 4 sets of variables for each button that need to change and they all end with 'ABSOLUTE'. 2 for your X axis and 2 for your Y axis. Your "Origin Point" is the very top right of the screen. So, setting a -60 for your TOPLEFT_X_ABSOLUTE under ICONIFY is going to move that button left along the X axis 60 pixels from the origin, which, you need to do because once you resize them using the WIDTH and HEIGHT variables they are all scrunched together because we haven't changed our ABSOLUTE variables yet to match.. I changed all 4 size variables for each one to 17. They were at 10. The way they had it set up,

TOPLEFT_X_ABSOLUTE minus BOTTOMRIGHT_X_ABSOLUTE = MIN/MAX_WIDTH/HEIGHT

BOTTOMRIGHT_Y_ABSOLUTE minus TOPLEFT_Y_ABSOLUTE = MIN/MAX_WIDTH/HEIGHT

This constant seems to hold true except for when a large celestial body, such as a Black Hole, passes at a near right angle to the plane of our Solar System.... Yea. Where was I?

So we want to offset both X variables by 17 now instead of 10. The same for our Y variables. Basically your most important ones are TOPLEFT_X_ABSOLUTE and TOPLEFT_Y_ABSOLUTE. Your X axis is the only thing we need to change significantly. Your Y axis, once you find a good number, will stay the same for all 3 buttons (because we want them all in the same position on our Y axis).

I'm starting to feel redundant. Look in my sig link under Enlightenment/Tweaks if you want to check it out. Actually, I see no reason why you couldn't just use my config file. I'm running DR16.7.1 (latest) with the Winter theme.

Also, I did open up all 9 image files with GIMP and changed them to 17x17. Afterwards, I got to thinking that Imlib will probably do that on it's own once it sees different dimensions in the config file. It does. So I deleted my modified images and restored the backups. Also, who ever made the theme looks to have screwed up on the minimize and maximize icon borders. You can't tell originally because the damn things are so tiny. Get your new config file in place and you'll see what I mean. The close button looks great tho... There will be new sets of icons in the same folder 'tweaks' if your interested as well. (Update: I used close1.png as a template and impoted the center of iconify1 into close1. Saved close1 as iconify1 overwriting the original and restarted E and now all 3 icons look good. I don't get it but I really don't care as well...)


After editing, you have to purge your config cache by:

cd /usr/X11R6/share/enlightenment/scripts
./e_cache_clean config

That should wrap it up. Took me a long ass time but it looks much better now. Thanks for reminding me about it. I think I conditioned myself to ignore them. Seeing as how they were barely visible to begin with, it wasn't hard to do...

Jon

Last edited by jong357; 11-26-2004 at 04:25 AM.
 
Old 11-26-2004, 03:49 AM   #8
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Done Editing. Problem Solved. Bump.
 
Old 11-26-2004, 09:25 AM   #9
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
[QUOTE]Originally posted by jong357

/usr/X11R6/share/enlightenment/themes/winter/borders/DEFAULT/border.cfg


Just as a note to anyone else following this, Jon mentions this config file however, on my system this file is located in ~/.enlightenment/themes/winter/borders/DEFAULT/border.cfg. You might need to look for it.

Thanks Jon, this really helps! There'll be a little extra in your next paycheck.

Kent
 
Old 11-26-2004, 11:02 AM   #10
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
It turns out that I was editing the correct file to change the menu font size but I didn't know about purging the config file cache, so the font size never changed. Seems like this would be mentioned somewhere; or maybe it is and I never found it.

Kent
 
Old 11-26-2004, 02:05 PM   #11
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea... The only way I found out about it was by digging thru those cached config files.. I saw refrence to a "Maintance Menu" that I am supposed to have. I don't have one. Not that I can find anyway. It would most certainly help if I did.

Code:
2 999;  100 "MAINT_SUBMENU";  706  "ROOT"
711 "Enlightenment Maintenance"
707 "NULL" "Purge config file cache";  709                1   /usr/X11R6/share/enlightenment/scripts/"e_cache_clean config"
707 "NULL" "Purge pager background cache";  709           1   /usr/X11R6/share/enlightenment/scripts/"e_cache_clean pager"
707 "NULL" "Purge background selector cache";  709        1   /usr/X11R6/share/enlightenment/scripts/"e_cache_clean bgsel"
707 "NULL" "Purge all caches";  709                       1   /usr/X11R6/share/enlightenment/scripts/"e_cache_clean all"
707 "NULL" "Query config file cache usage";  709          1   /usr/X11R6/share/enlightenment/scripts/"e_cache_query config"
707 "NULL" "Query pager background cache usage";  709     1   /usr/X11R6/share/enlightenment/scripts/"e_cache_query pager"
707 "NULL" "Query background selector cache usage";  709  1   /usr/X11R6/share/enlightenment/scripts/"e_cache_query bgsel"
707 "NULL" "Query all cache usage";  709                  1   /usr/X11R6/share/enlightenment/scripts/"e_cache_query all"
707 "NULL" "Regenerate Menus";  709                       1   /usr/X11R6/share/enlightenment/scripts/"e_gen_menu"
1000
I installed some epplets and it told me to run "e_gen_menu".... Might be nice if it was in a menu or ATLEAST in my path...... So, I made symlinks from all that stuff into /usr/X11R6/bin..... I suppose you could make your own menu by using ~/.enlightenment/{file.menu,user_apps.menu}.....

Last edited by jong357; 11-26-2004 at 02:08 PM.
 
Old 11-26-2004, 03:42 PM   #12
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I also got to thinking that my config file is only going to work for someone running at a 1024x768 resolution because those variable pertain to pixels, not percentages.... It's best to edit your own I suppose. O.k... I'm done.... I think....
 
Old 11-27-2004, 09:04 AM   #13
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
The Maintenance menu pops up when you third-click on the desktop.
 
Old 11-27-2004, 08:48 PM   #14
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea... Thats kinda what I figured but I'm on a laptop. Two buttons.... Not sure how to acomplish that one.... Holding down SHIFT, ALT and HOME while clicking on both buttons did nothing for me......
 
Old 11-27-2004, 10:05 PM   #15
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
You can emulate three buttons in your xorg.conf. Pressing both buttons at the same time equals a third button.
 
  


Reply



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
Huge Fonts in Enlightenment DR17? nathan plemons Linux - Software 5 06-16-2005 02:30 PM
Xserver & tt fonts mAineAc Linux - Software 0 02-23-2005 04:19 PM
*%!# *$&%^! Arwtiz @*%&%) !&*#& fonts!!!! KungFuHamster Linux - General 3 11-19-2004 11:16 AM
Libs Version & Fonts & Wireless dhruiz Linux - Newbie 1 11-04-2003 09:48 PM
Enlightenment & Gnome dnar Linux - Software 5 12-21-2002 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:26 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
Open Source Consulting | Domain Registration