AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Forum's font size for [Code] sections

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  

(Updated due to another change in font size) Do you like the forum's current font size for [code] sections?
Yes, and it's a better size than it was in the beginning.
40%
 40%  [ 4 ]
Yes, but the original/beginning size was fine too.
30%
 30%  [ 3 ]
No, because the font is too small.
20%
 20%  [ 2 ]
No, because the font is too large.
0%
 0%  [ 0 ]
Other
10%
 10%  [ 1 ]
Total Votes : 10

Author Message
neyon



Joined: 29 May 2005
Posts: 34
Location: The Netherlands

PostPosted: Sat Feb 18, 2006 6:04 pm    Post subject: Forum's font size for [Code] sections Reply with quote

Seems as if your "code text" font is is smaller the past few days (yes, I mean the green code between the code and /code brackets...).

Greetz Neyon
_________________
Greetz,
Neyon
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5107
Location: eth0

PostPosted: Sat Feb 18, 2006 6:28 pm    Post subject: Reply with quote

The forum's code font is discussed in this topic.

Chris, I believe that if the CSS was changed to make the font size 80%, users seeing Courier New (like neyon and myself) would see the text better.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Feb 19, 2006 6:19 pm    Post subject: Reply with quote

Yes, but then users like Serenity would find the font too large! I've added a poll to help decide. To demonstrate the font size, here is a code section:

Code:
; Example: ListBox containing files in a directory:

Gui, Add, Text,, Pick a file to launch from the list below.`nTo cancel, press ESCAPE or close this window.
Gui, Add, ListBox, vMyListBox gMyListBox w640 r10
Gui, Add, Button, Default, OK
Loop, C:\*.*  ; Change this folder and wildcard pattern to suit your preferences.
   GuiControl,, MyListBox, %A_LoopFileFullPath%
Gui, Show
return

MyListBox:
if A_GuiControlEvent <> DoubleClick
   return
; Otherwise, fall through:
ButtonOK:
GuiControlGet, MyListBox  ; Retrieve the ListBox's current selection.
MsgBox, 4,, Would you you like to launch the file or document below?`n`n%MyListBox%
IfMsgBox, No
   return
; Otherwise, try to launch it:
Run, %MyListBox%,, UseErrorLevel
if ErrorLevel = ERROR
   MsgBox Could not launch the specified file.  Perhaps it is not associated with anything.
return

GuiClose:
GuiEscape:
ExitApp
Back to top
View user's profile Send private message Send e-mail
evl



Joined: 24 Aug 2005
Posts: 1238

PostPosted: Sun Feb 19, 2006 6:42 pm    Post subject: Reply with quote

I think the new size is about right - it also makes the code sections a little more compact.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun Feb 19, 2006 6:43 pm    Post subject: Reply with quote

Looks OK for me, on Firefox 1.0, with Andale Mono installed and no zoom (Display / Text size).

Note that Firefox allows to change the base size of the monospaced font (I chose 13px) independently of the other fonts.

I just noticed: the Topic review in the Reply page shows code in a different font (not Andale Mono, italic!).
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Feb 19, 2006 6:49 pm    Post subject: Reply with quote

PhiLho wrote:
The Topic review in the Reply page shows code in a different font (not Andale Mono, italic!).
Thanks for pointing that out. Apparently that section doesn't use the CSS file, so I'll look into changing it.
Back to top
View user's profile Send private message Send e-mail
Serenity



Joined: 08 Nov 2004
Posts: 1215

PostPosted: Sun Feb 19, 2006 11:13 pm    Post subject: Reply with quote

With the font size at 75%...

On 2k:
On 800x600 and 1024x768 resolutions, the font size is too small in Firefox but ok in IE and Opera (code font looks almost as large as main text).

On XP:
At 1024x768, the font size is ok in Firefox and IE.

Another issue with using % instead of px or em (preferable) is that when changing the font size of the page with Firefox (Ctrl+WheelUp/Down), the font size of the code doesn't appear to change until you have made the body text far too large. :( The font size of all classes (code, quote etc) should increase/decrease proportionately.

Using Ctrl+WheelUp/Down in IE, only the size of the code font changes.

PhiLho wrote:
Note that Firefox allows to change the base size of the monospaced font (I chose 13px) independently of the other fonts.


This might work if monospace was specified in the css but it isn't. I just set this to 30px and see no difference in font size. (Firefox 1.0.7)
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Feb 20, 2006 4:21 am    Post subject: Reply with quote

Since I changed the font size again, I reset the poll.

The font is now:
font-size: 12px; line-height: 14px
font-family: Andale Mono, Courier New, Courier

This seems somewhere between the original/long-standing size of Courier/11 and the abandoned/new size of Courier New/75%. Hopefully this is a good compromise for everyone because I don't think there's much else that can be done with it.

As someone suggested, switching back to px (rather than percentage) seemed better because all the other CSS sizes are in px (i.e. it might produce more consistent results).

Line-height is an interesting setting because if omitted, MSIE seems to provide a different default than Firefox. The setting of 14 provides very little space between lines, but that may be appropriate for code sections. Comments are welcome.
Back to top
View user's profile Send private message Send e-mail
neyon



Joined: 29 May 2005
Posts: 34
Location: The Netherlands

PostPosted: Mon Feb 20, 2006 8:39 am    Post subject: Reply with quote

@Chris:
I have not problem with that. I can accept that sometimes you have to choose a solution that's acceptable for the most community members.
Thanks.
_________________
Greetz,
Neyon
Back to top
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 1215

PostPosted: Mon Feb 20, 2006 10:31 pm    Post subject: Reply with quote

Chris wrote:
The font is now:
font-size: 12px; line-height: 14px
font-family: Andale Mono, Courier New, Courier


Thanks Chris. On 2k this is better than it was, it now looks and behaves the same in IE, Opera and Firefox (Ctrl+WheelUp/Down works as it did since the font sizes are all in px), with Courier New and Andale Mono.

I prefer the code sections at 11px so I added the following to my userContent.css file to override the code font size in Firefox:

Code:
/* http://www.autohotkey.com/forum/index.php */
body#www-autohotkey-com .code {
font-size: 11px !important;
line-height: 12px !important;
}

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Feb 21, 2006 10:02 am    Post subject: Reply with quote

I notice you switched back to sans-serif as fallback family:
font-family: Andale Mono, Courier New, Courier, sans-serif;
Is this deliberate or an overlook?
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Tue Feb 21, 2006 5:59 pm    Post subject: Reply with quote

"sans-serif" was always there, I just didn't mention it because no one seems to care about it Smile. Maybe it's because 99% of visitors have either Courier or Courier New (since 99% of visitors probably use Windows at least part of the time).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group