Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for non-English IBM/DOS character sets #268

Open
ercanersoy opened this issue Nov 12, 2020 · 4 comments
Open

Support for non-English IBM/DOS character sets #268

ercanersoy opened this issue Nov 12, 2020 · 4 comments

Comments

@ercanersoy
Copy link

Hello,

I would like use FreeBASIC. But, FreeBASIC does not support non-English IBM/DOS character sets on graphical screen modes.

I would like to add support non-English IBM/DOS character sets on graphical screen modes?

Thanks.

@rversteegen
Copy link
Member

For graphical (SCREEN) modes, FB uses a hardcoded code page 437 (US English IBM PC) font in one of three resolutions. You can find these fonts at src/gfxlib2/gfxdata. So the first step would be to add more there.

There are many code pages, but I suppose that just a few are common, so it would be nice to have them. (I've personally run into the problem of gfxlib2 not supporting the default system codepage.) And they are LZW compressed, and there's heaps of redundancy between different code pages. But I wouldn't want gfxlib2 to be bloated with a hue number of them.

BTW, if you use raw console output instead of a graphical mode, then FB can output whatever the native encoding is, e.g. typically UTF-8 on Unix.

@ercanersoy
Copy link
Author

I would like use code page is other than 437 graphical modes.

In DOS, I use code page 857. But, FreeBASIC is replace the code page to 437.

Is FreeBASIC load internal font on DOS for screen modes?

Thanks.

@rversteegen
Copy link
Member

No, FB does not load system fonts. If you want to display text with the system code page you must use text mode, not a graphical mode (don't call screen or screenres).

@ercanersoy
Copy link
Author

I would like to FreeBASIC not use a hardcoded codepage in DOS. FreeBASIC doesn't need to a hardcoded codepage in DOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants