cp852 font
HI,
I followed the recent discussion but the solution given there didn't worked for me.
I have an application I need to run and it is using CP852 fonts (There is actually a bunch of options I need the standardsa I am using are know as Latin2 and Mazovia - both are for polish national characters)
I found an old dos app that installs the font at runtime, and this solution works for 80x25 but as soon as I swithc into 80x43 the font stops working. Therefore I believe I must install the cp852 font on my XWindows and then try to force dosemu to use it.
the dosemu's supplied vga fonts have few codepages but not 852. I have Mandriva 10.2 and dosemu 1.2.2-2mdk
I can use polish letters in standard linux console (using Monospace font) so I think I have the font on place.
In short how to do it? I can't move on from this point.
CUIN Kaczy
Hi Andrzej,
Get this package: xfonts-terminus-dos_4.12-2_all.deb
If you don't use Debian (like me) open it (I used Ark), get the cp852 font, and install it manually in Xfonts. and run mkfontdir. Configure dosemu to use it...
It's triky, but I did it with cp850 and it is great!
If you want 80x43, forguet the old versions. Only CVS will do.
On condole, you are probably using the VGA hardware. It is simulated well in the CVS dosemu. 50 lines are ok in 1.3.2. Note that maybe your font package does not have the 8x8 font included. Try the latest FreeDOS display packages, it may help too.
good luck,
Alain
Andrzej Kaczmarczyk escreveu:
Quoted 14 lines
HI,
I followed the recent discussion but the solution given there didn't worked for me.
I have an application I need to run and it is using CP852 fonts (There is actually a bunch of options I need the standardsa I am using are know as Latin2 and Mazovia - both are for polish national characters)
I found an old dos app that installs the font at runtime, and this solution works for 80x25 but as soon as I swithc into 80x43 the font stops working. Therefore I believe I must install the cp852 font on my XWindows and then try to force dosemu to use it. the dosemu's supplied vga fonts have few codepages but not 852.
I have Mandriva 10.2 and dosemu 1.2.2-2mdk
I can use polish letters in standard linux console (using Monospace font) so I think I have the font on place.In short how to do it? I can't move on from this point.
CUIN Kaczy
Hi
Uzytkownik "Alain" <[email protected]> napisal w wiadomosci news:[email protected]...
Quoted 8 lines
Hi Andrzej,
Get this package: xfonts-terminus-dos_4.12-2_all.deb
If you don't use Debian (like me) open it (I used Ark), get the cp852 font, and install it manually in Xfonts. and run mkfontdir. Configure dosemu to use it...
Quoted 9 lines
It's triky, but I did it with cp850 and it is great!
If you want 80x43, forguet the old versions. Only CVS will do.
On condole, you are probably using the VGA hardware. It is simulated well in the CVS dosemu. 50 lines are ok in 1.3.2. Note that maybe your font package does not have the 8x8 font included. Try the latest FreeDOS display packages, it may help too.
I wanted to report success, and actually no arcane tricks were needed. All that was required was to fetch the cvs version of dosemu and latest relase of freedos
after install change the default autoexec to 852 and dosemu.conf value external characterset to ISO-8859-2, and internal character set to cp852. voila
work well with all 80x25, 80x43, 80x50
the font is quite crappy in xdosemu if you change the window size, but if you don't need (and I don't) 1024x768 just reduce the screen to 800x600 and the font size and look will be ok
small problem is in text console, because the maximum I could get with dosemu mode is 37 lines.
anyone know the solution here?
Quoted 2 lines
good luck,
Alain
CUIN Kaczy
Hi Kaczy (just gessing your name :),
To get the console characters you will need the fonts that I indicated. I understand from your explanation the you are using the internal font which is 8x8 and net very nice because of the limited resolution. The terminus fonts are very good looking.
as for 50 lines, have you used the command "mode co80,50"?
I just saw that there is a newer version in CVS about the 43 lines problem, mine is a bit older...
Alain
Andrzej Kaczmarczyk escreveu:
Quoted 45 lines
Hi
Uzytkownik "Alain" <[email protected]> napisal w wiadomosci news:[email protected]...
Quoted 4 lines
Hi Andrzej,
Get this package: xfonts-terminus-dos_4.12-2_all.deb
Quoted 8 lines
If you don't use Debian (like me) open it (I used Ark), get the cp852 font, and install it manually in Xfonts. and run mkfontdir. Configure dosemu to use it...
It's triky, but I did it with cp850 and it is great!
If you want 80x43, forguet the old versions. Only CVS will do.
On condole, you are probably using the VGA hardware. It is simulated well in the CVS dosemu. 50 lines are ok in 1.3.2. Note that maybe your font package does not have the 8x8 font included. Try the latest FreeDOS display packages, it may help too.
I wanted to report success, and actually no arcane tricks were needed.
All that was required was to fetch the cvs version of dosemu and latest relase of freedos
after install change the default autoexec to 852 and dosemu.conf value external characterset to ISO-8859-2, and internal character set to cp852. voilawork well with all 80x25, 80x43, 80x50
the font is quite crappy in xdosemu if you change the window size, but if you don't need (and I don't) 1024x768 just reduce the screen to 800x600 and the font size and look will be oksmall problem is in text console, because the maximum I could get with dosemu mode is 37 lines. anyone know the solution here?
Quoted 2 lines
good luck,
AlainCUIN Kaczy
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Hi Kaczy (just gessing your name :),
Thats my nick actually :). Hi
Quoted 5 lines
To get the console characters you will need the fonts that I indicated. I understand from your explanation the you are using the internal font which is 8x8 and net very nice because of the limited resolution. The terminus fonts are very good looking.
I played a bit with trying to make dosemu use the installed fonts (including hand-edition of the fonts description files) with varied effect none actually working. I'll have to try more, till that I went for switching resolution from commandline which gives good results as far as font readability goes.
Quoted 2 lines
as for 50 lines, have you used the command "mode co80,50"?
yes I did, and it does work in xdosemu. however in dosemu run from text console, the maximum I could get is 37 lines :(
The other way about xdosemu would be to change the window size without changing font size in 80x50.
Quoted 3 lines
I just saw that there is a newer version in CVS about the 43 lines problem, mine is a bit older...
I have yesterday's checkout compiled.
Quoted 2 lines
Alain
CUIN (See You In Net) Kaczy (my ten years old standing signature)
Quoted 61 lines
Andrzej Kaczmarczyk escreveu:
Quoted 46 lines
Hi
Uzytkownik "Alain" <[email protected]> napisal w wiadomosci news:[email protected]...
Quoted 8 lines
Hi Andrzej,
Get this package: xfonts-terminus-dos_4.12-2_all.deb
If you don't use Debian (like me) open it (I used Ark), get the cp852 font, and install it manually in Xfonts. and run mkfontdir. Configure dosemu to use it...
Quoted 9 lines
It's triky, but I did it with cp850 and it is great!
If you want 80x43, forguet the old versions. Only CVS will do.
On condole, you are probably using the VGA hardware. It is simulated well in the CVS dosemu. 50 lines are ok in 1.3.2. Note that maybe your font package does not have the 8x8 font included. Try the latest FreeDOS display packages, it may help too.
I wanted to report success, and actually no arcane tricks were needed. All that was required was to fetch the cvs version of dosemu and latest relase of freedos
after install change the default autoexec to 852 and dosemu.conf value external characterset to ISO-8859-2, and internal character set to cp852. voilawork well with all 80x25, 80x43, 80x50
the font is quite crappy in xdosemu if you change the window size, but if you don't need (and I don't) 1024x768 just reduce the screen to 800x600 and the font size and look will be oksmall problem is in text console, because the maximum I could get with dosemu mode is 37 lines.
anyone know the solution here?Quoted 2 lines
good luck,
AlainQuoted 6 lines
CUIN Kaczy -
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
I played a bit with trying to make dosemu use the installed fonts (including hand-edition of the fonts description files) with varied effect none actually working. I'll have to try more, till that I went for switching resolution from commandline which gives good results as far as font readability goes.
That finally worked (the point I was missing was the restart X-server after mkfontdir)
plus I installed the fonts from linux PLD distribution and now have a ten different sized fixed fonts at my disposal.
Quoted 5 lines
Quoted 3 lines
as for 50 lines, have you used the command "mode co80,50"?
yes I did, and it does work in xdosemu. however in dosemu run from text console, the maximum I could get is 37 lines :(
that point isn't solved, my console is by default 100x37, I can't change it from dosemu.
I've tried usign SVGATextConsole, but the author specifically says in docs that this is not going to work with dosemu.
anyone know other solution. text consoles would allow me to turn of Xes and that would in turn allow me to run the program on soe old stations?
Quoted 3 lines
The other way about xdosemu would be to change the window size without changing font size in 80x50.
my guff, with fixed fonts this is how it works :)
CUIN Kaczy
Hi Kaczy,
Andrzej Kaczmarczyk escreveu:
Quoted 1 line
plus I installed the fonts from linux PLD distribution and now have a ten different sized fixed fonts at my disposal.
Are those VGA fonts? if so can you send a link here?
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
as for 50 lines, have you used the command "mode co80,50"?
yes I did, and it does work in xdosemu. however in dosemu run from text console, the maximum I could get is 37 lines :(
that point isn't solved, my console is by default 100x37, I can't change it from dosemu.
I've tried usign SVGATextConsole, but the author specifically says in docs that this is not going to work with dosemu.
I inderstand that you are using it on a console, with direct hw access and not under X?
Quoted 1 line
anyone know other solution. text consoles would allow me to turn of Xes and that would in turn allow me to run the program on soe old stations?
Have you tried latest FreeDOS MODE/DISPLAY/KEYB? there have been enhancements lately that couls help.
Alain
Hello Alain
Quoted 2 lines
Are those VGA fonts? if so can you send a link here?
sure:
http://rpmfind.net/linux/rpm2html/search.php?query=XFree86-fonts-CP852
there are cp850 also, just browse around that webpage, they install into /usr/loacal/shared/fonts, so you'll have to add the path or copy them to the default directory where dosemu looks for them, run mkfontdir, restart x add them to fonts.alias
and that should be it.
btw, why dosemu ignore fonts.dir? It seems that if the font isn't added to the fonts.alias it is ignored by dosemu.
Quoted 2 lines
I inderstand that you are using it on a console, with direct hw access and not under X?
ouch, yes .... I think (having small troubles in understanding) standard console not those launched from kde or other window manager
Quoted 6 lines
Quoted 3 lines
anyone know other solution. text consoles would allow me to turn of Xes and that would in turn allow me to run the program on soe old stations?
Have you tried latest FreeDOS MODE/DISPLAY/KEYB? there have been enhancements lately that couls help.
tried mode, but as I said it doesn't allow anything else than 100x37 mode (kinda weird dimensions if anyone asks), I'll play with display.
Quoted 2 lines
Alain
CUIN Kaczy
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines
Have you tried latest FreeDOS MODE/DISPLAY/KEYB? there have been enhancements lately that couls help.
there is no Keyb (which isn't necessary anyway, since it only deal with keyboard to font mapping, which is done by dosemu, correctly), there is DISPLAY (whose docs says something about modecom.exe which isn't present, but I assume that docs are just old and not updated (hint, hint, hint), and there is mode.
mode co80,25 - no errors just comment : "Could only set 37, not 25" mode co80,43 - "Using VGA 350 lines. Could only set 37 not 43" mode co80,50 - "Using VGA 400 lines. Could only set 37 not 50"
my gut feeling tells me that it is all about termcap files which define how the text console should look like. However this is 700kB sized conf file, and I don't have a slightest idea whats going on there.
then again screenrc seems to be calling termcap with some parameters but those are also a mystery to me. So it does leave me with a cry over an empty field, "Does anybody now how to make a dosemu 43 lines in text console without running X server?"
:)
Quoted 2 lines
Alain
CUIN Kaczy
Quoted 5 lines
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Andrzej Kaczmarczyk
there is no Keyb (which isn't necessary anyway, since it only deal with keyboard to font mapping, which is done by dosemu, correctly), there is DISPLAY (whose docs says something about modecom.exe which isn't present, but I assume that docs are just old and not updated (hint, hint, hint), and there is mode.
I believe when DISPLAY was released there was just modecon, and later Eric Auer improved MODE to have "MODE CON" behave like the old "MODECON", but the DISPLAY docs don't know that yet. It's a FreeDOS issue.
Quoted 7 lines
mode co80,25 - no errors just comment : "Could only set 37, not 25" mode co80,43 - "Using VGA 350 lines. Could only set 37 not 43" mode co80,50 - "Using VGA 400 lines. Could only set 37 not 50"
my gut feeling tells me that it is all about termcap files which define how the text console should look like. However this is 700kB sized conf file, and I don't have a slightest idea whats going on there.
Basically if you run dosemu in a terminal (and the Linux console is one), it just takes rows and columns as a given and does not try to change those.
I presume you're using fbdev with 800x600 resolution to fit 100x37. Unless you use vesafb (needs to set it at boot time). You can try to use "fbset" to set 1024x768, and then use
stty cols 80 rows 43
in Linux to limit columns and rows.
DOSEMU could also do that itself (what stty does) but it's usually a bit of a waste of screen space; DOS modes assume 80x25, and so what you'd then see is that only the left upper half of the screen is used.
There are two alternatives which give you graphics on the console:
1. direct hardware access: see Stas' mail and README. You need root though, either suid-root or sudo access to dosemu.bin.
2. framebuffer console via SDL. This is safer but slower, how much slower depends. This works if you are in the "video" group, then dosemu -S
should do the trick.
Bart
Re: cp852 font - finally
In reply to Andrzej KaczmarczykI have all the problems solved (at least those according to cp852 and multiple lines, the memory bug remains)
solution, for anyone else having the problem (assuming you have fetched & compiled recent freedos, dosemu from cvs)
1. download the cp852 (or any other) fonts
http://rpmfind.net/linux/rpm2html/search.php?query=XFree86-fonts-CP852
2. install them or copy them to X Servrs miscelanious fonts path. In my (Mandriva 10.2) case that was: /usr/X11R6/lib/X11/fonts/misc
3. run mkfontscale, mkfontdir, restart the X Server
4. add to the fonts.alias your new fonts, in my case I added:
cp852-8x13B -misc-fixed-bold-r-normal--13-120-75-75-c-80-cp852-0 cp852-8x13I -misc-fixed-medium-o-normal--13-120-75-75-c-80-cp852-0 cp852-9x15 -misc-fixed-medium-r-normal--15-140-75-75-c-90-cp852-0 cp852-9x15B -misc-fixed-bold-r-normal--15-140-75-75-c-90-cp852-0 cp852-9x18B -misc-fixed-bold-r-normal--18-120-100-100-c-90-cp852-0
I have a 1024x768 so those sizes were apropriate
5. modify dosemu.conf
# I have polish letters at my standard console,
# if you don't then you need to use cp437 or iso8859-1 # or whatever you have your standard $_external_char_set = "iso8859-2"
# that should settle the keyboard mapping $_internal_char_set = "cp852"
# now the current font (one of the above added to alias file) $_X_font = "cp852-9x15B"
6. at this point you should be having xdosemu working perfectly in all modes you can switch them from within dosemu via
mode co80,25
mode co80,43
mode co80,50
note that the window size will change depending on number of lines
7. If you wish to run the dosemu form text console there is few more steps
8. modify your dosemu.conf
# this is magic, don't know what it does but it is needed $_console=(1) $_graphics=(1)
9. the next step depend on your graphics card
I have a SiS chipset PCI Card so
$_pci = (on)
$_chipset = "sis"
10. by this point you can run doesmu as root, to allow your users using it, change your sudoers file (again on mandrake this is /etc/sudoers) I have them all in dosemu_users group, you can make one with groupadd dosemu_users
now you add you user john to dosemu_users
usermod -G john,dosemu_users john
and add in the sudoers file
%dosemu_users localhost=/usr/local/bin/dosemu -s
11. login as john
check the group with "groups"
run dosemu
dosemu -s
the warning will appear as you are using full featured dosemu, but beside that you should be logging in with no problem.
as above all modes should be working happily.
enjoy
CUIN Kaczy