Re: Increase Menu Font

Roger <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
> On Tue, Jan 05, 2016 at 02:32:54PM -0500, Roger wrote:
>What hinders me from using Dillo more often, the menu font is quite relatively 
>small compared to my monitor/display DPI or monitor/display size.  I have a 
>Dell U2713HM-IPS-LED Monitor, and usually find I have to increase the font size 
>on most web pages.
>
>However, the menu GUI font should be relatively easy to increase, including 
>when using DWM & DMenu here.  However, increasing (or even decreasing) Dillo's 
>menu font size may require editing system (ie. /usr) GTKRC/QTRC file settings?
>
>Should this not be something exported from FLTK, with a variable set within the 
>dillorc file?  Although there is a panel_size variable, the variable has always 
>been set to large here within even my 19 inch monitors, and still proving to 
>be still quite small compared to the size of the 19 inch monitors.


Should note, there is no large option anymore for the panel_size dillorc 
variable.  Only tiny, small & medium.

Hacking the dillo source code, following gives me larger buttons when selecting 
the medium profile.

--- ./dillo-3.0.5/src/ui.cc     2015-06-10 17:45:37.000000000 -0400
+++ ui.cc       2016-01-05 14:52:24.298175587 -0500
@@ -559,7 +559,7 @@
       if (Small_Icons)
          bw = 42, bh = 36, mh = 0, lh = 22, lbl = 1;
       else
-         bw = 45, bh = 45, mh = 0, lh = 28, lbl = 1;
+         bw = 65, bh = 65, mh = 0, lh = 48, lbl = 1;
    }
    nh = bh, fh = 28; sh = 20;

Although the buttons seem much larger, the font size still remains the same 
size.  I may guess dillo is pulling the system font size (and maybe including 
font name and style), and using this size as it's local font size too?  As 
such, I use a small font size for DWM's toolbars for obvious reasons.

I tend to use different font sizes for all three; terminal, DWM desktop 
toolbars, and applications.  I have DWM configured with Conky to display system 
information within the DWM toolbars, so the font has to be somewhat small to 
relay all information.  Terminal uses the next larger size as I need to be able 
to read text or source code files, but still needs to be somewhat small to see 
whole files.  And then applications, requiring the next larger font as the 
information within the application's toolbars are more well structured, 
allowing larger fonts, and to also mention requiring larger buttons so I can 
click the applications button's easier.

On a side note, I'm stumped as to meanings of bw, bh, mh, lh, lbl.  I can only 
guess; bold weight, bold hieght, medium hieght, ...  Personally, I avoid two to 
three letter variable names, except for the obvious counters.  As the inventor 
of programming languages stated, the langauge should be readable. ;-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.