The view as text feature
Moderator: Moderators
-
pcw
- Posts: 7
- Joined: 2004-07-20 15:14
The view as text feature
Right now you have the possibility of using the OEM monospaced font for viewing text files. But the majority of the text files (so called .nfo files) are using a SYSTEM font.
So I'm wondering if it would be possible in future versions of DC++ to be able to change the font for viewing text files?
Regards,
Peter
So I'm wondering if it would be possible in future versions of DC++ to be able to change the font for viewing text files?
Regards,
Peter
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
Re: The view as text feature
pcw wrote:using the OEM monospaced font for viewing text files. But the majority of the text files (so called .nfo files) are using a SYSTEM font.
I don't understand the distinction you are making here. When you talk about SYSTEM, are you talking about the Windows font called "System"? If so, that is a monospaced font.
I understand the request for setting your own font, but can you please elaborate on the above..
-
pcw
- Posts: 7
- Joined: 2004-07-20 15:14
Re: The view as text feature
TheParanoidOne wrote:pcw wrote:using the OEM monospaced font for viewing text files. But the majority of the text files (so called .nfo files) are using a SYSTEM font.
I don't understand the distinction you are making here. When you talk about SYSTEM, are you talking about the Windows font called "System"? If so, that is a monospaced font.
I understand the request for setting your own font, but can you please elaborate on the above..
What I mean is that when I view text files for instance in notepad I've set the font to SYSTEM (OEM/DOS) to be able to view them "correctly" in all their ascii glory
I figured setting that font as default font when viewing text files in DC++ would "correct" the viewing but then again you can only use "Use OEM monospaced font" which doesn't seem to do the job correctly..
Here's a screendump so you can see what I'm talking about..

-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
Re: The view as text feature
pcw wrote:you can only use "Use OEM monospaced font" which doesn't seem to do the job correctly..
Define "correctly". Shouldn't all monospace font by their very nature (monospaced!) show ASCII art in exactly the same way, albeit with a different font style?
pcw wrote:Here's a screendump so you can see what I'm talking about..
Unfortunately that doesn't help me.
Perhaps two "correct" and "incorrect" pictures would be more appropriate?
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
pcw
- Posts: 7
- Joined: 2004-07-20 15:14
TheParanoidOne wrote:Ah, I get you now. Although to be pedantic, you are using the Terminal font and not the System font. If you had mentioned Terminal at first, I might have clicked earlier.
Thanks for the pics. It's clear now.
My bad
I meant of course Terminal font
So do you know anything about this little predicament?
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
Oh, I guess I should have mentioned this earlier: If you want to request this feature, add it to the feature tracker at
http://dcplusplus.sourceforge.net/bugs
Make sure you set the severity as enhancement.
http://dcplusplus.sourceforge.net/bugs
Make sure you set the severity as enhancement.
-
pcw
- Posts: 7
- Joined: 2004-07-20 15:14
TheParanoidOne wrote:Oh, I guess I should have mentioned this earlier: If you want to request this feature, add it to the feature tracker at
http://dcplusplus.sourceforge.net/bugs
Make sure you set the severity as enhancement.
Done it
Okay so thanks for your help
Peace.
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
that's odd..
relevant code:
from: http://msdn.microsoft.com/library/en-us ... s_1t10.asp
over here the OEM font _is_ Terminal, that's why I chose the OEM-font.
relevant code:
Code: Select all
[2:wza:windows]$ grep monoFont * 2>/dev/null
TextFrame.cpp: ctrlPad.SetFont(WinUtil::monoFont);
WinUtil.cpp:HFONT WinUtil::monoFont = NULL;
WinUtil.cpp: monoFont = (HFONT)::GetStockObject(BOOLSETTING(USE_OEM_MONOFONT)?OEM_FIXED_FONT:ANSI_FIXED_FONT);
WinUtil.cpp: ::DeleteObject(monoFont);
WinUtil.h: static HFONT monoFont;from: http://msdn.microsoft.com/library/en-us ... s_1t10.asp
ANSI_FIXED_FONT Windows fixed-pitch (monospace) system font.
OEM_FIXED_FONT Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) font.
over here the OEM font _is_ Terminal, that's why I chose the OEM-font.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
this page ( http://msdn.microsoft.com/library/en-us ... t_3pbo.asp ) even explicitly states that it should have the IBM charset (those that the NFO's use).
besides.. the ansi font should be monospaced too (courier over here). I would guess that your fonts are messed up somehow.
OEM_FIXED_FONT Specifies a monospace font based on an OEM character set. For IBM computers and compatibles, the OEM font is based on the IBM PC character set.
besides.. the ansi font should be monospaced too (courier over here). I would guess that your fonts are messed up somehow.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
TheParanoidOne wrote:Note that the toggle does nothing on either.
did you restart dc++?
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
huh?
http://hem.bredband.net/b247083/temp/dc.jpg
that is not courier.. that's some variable width font
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
Sedulus wrote:TheParanoidOne wrote:Note that the toggle does nothing on either.
did you restart dc++?
D'Oh! I completely forgot that you needed to do that with the Appearance page. My bad.
Sedulus wrote:TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
huh?
http://hem.bredband.net/b247083/temp/dc.jpg
that is not courier.. that's some variable width font
It's not variable width. It's monospaced.
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
foxyshadis
- Posts: 15
- Joined: 2004-04-13 00:53
Sedulus wrote:TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
huh?
http://hem.bredband.net/b247083/temp/dc.jpg
that is not courier.. that's some variable width font
It's not variable width. It's monospaced.[/quote]
It's Arial / MS Sans Serif, Window's ugly-as-sin default sans-serif variable-width font in textboxes. (Just looks mono when it's a bunch of the same or similar character.)
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
foxyshadis
- Posts: 15
- Joined: 2004-04-13 00:53
-
Sedulus
- Forum Moderator
- Posts: 687
- Joined: 2003-01-04 14:32
pcw wrote:Is the font issue fixed? :)
I see no font issue (except on your machine).
according to everything I find on the internet, both fonts should be fixed width, with the ANSI font being Courier and the OEM font being Terminal (or at least IBM/cp437)
I did however see other fonts in the image? are you using some kind of skin? could you disable/uninstall/default that skin and see if the fonts are corrected?
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)
-
pcw
- Posts: 7
- Joined: 2004-07-20 15:14
Sedulus wrote:pcw wrote:Is the font issue fixed?
I see no font issue (except on your machine).
according to everything I find on the internet, both fonts should be fixed width, with the ANSI font being Courier and the OEM font being Terminal (or at least IBM/cp437)
I did however see other fonts in the image? are you using some kind of skin? could you disable/uninstall/default that skin and see if the fonts are corrected?
I'm using a patched uxtheme.dll to use other .msstyles than the windows default.
Anyway I reverted back to the classic windows xp .msstyle and it still doesn't draw the ascii "correctly" for me
Who is online
Users browsing this forum: Google [Bot] and 0 guests
