The view as text feature
Moderator: Moderators
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
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Re: The view as text feature
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.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 understand the request for setting your own font, but can you please elaborate on the above..
Re: The view as text feature
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 gloryTheParanoidOne wrote: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.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 understand the request for setting your own font, but can you please elaborate on the above..
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..
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Re: The view as text feature
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:you can only use "Use OEM monospaced font" which doesn't seem to do the job correctly..
Unfortunately that doesn't help me. Are you showing what you deem to be "correct" behaviour or "incorrect" behaviour in that screenshot?pcw wrote:Here's a screendump so you can see what I'm talking about..
Perhaps two "correct" and "incorrect" pictures would be more appropriate?
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
My badTheParanoidOne 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.
I meant of course Terminal font
So do you know anything about this little predicament?
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14: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.
Done itTheParanoidOne 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.
Okay so thanks for your help
Peace.
that's odd..
relevant code:
from: http://msdn.microsoft.com/library/en-us ... s_1t10.asp
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;
over here the OEM font _is_ Terminal, that's why I chose the OEM-font.ANSI_FIXED_FONT Windows fixed-pitch (monospace) system font.
OEM_FIXED_FONT Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) 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)
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
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.
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)
did you restart dc++?TheParanoidOne wrote:Note that the toggle does nothing on either.
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)
huh?TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
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)
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
D'Oh! I completely forgot that you needed to do that with the Appearance page. My bad. I guess that comment can be disregarded for the moment.Sedulus wrote:did you restart dc++?TheParanoidOne wrote:Note that the toggle does nothing on either.
It's not variable width. It's monospaced.Sedulus wrote:huh?TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
http://hem.bredband.net/b247083/temp/dc.jpg
that is not courier.. that's some variable width font
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Posts: 15
- Joined: 2004-04-12 19:53
- Contact:
It's not variable width. It's monospaced.[/quote]Sedulus wrote:huh?TheParanoidOne wrote:a Courier type font, as shown in the "incorrect" picture above.
http://hem.bredband.net/b247083/temp/dc.jpg
that is not courier.. that's some variable width font
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.)
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Posts: 15
- Joined: 2004-04-12 19:53
- Contact:
I see no font issue (except on your machine).pcw wrote:Is the font issue fixed? :)
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)
I'm using a patched uxtheme.dll to use other .msstyles than the windows default.Sedulus wrote:I see no font issue (except on your machine).pcw wrote:Is the font issue fixed?
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?
Anyway I reverted back to the classic windows xp .msstyle and it still doesn't draw the ascii "correctly" for me