Comments (4)
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.
from fbc.
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.
from fbc.
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
).
from fbc.
I would like to FreeBASIC not use a hardcoded codepage in DOS. FreeBASIC doesn't need to a hardcoded codepage in DOS.
from fbc.
Related Issues (20)
- Building FBC from Source Bootstrap on PowerPC64LE
- LINUX : icon pixmap (.xpm) is ignored with GFX_NO_FRAME HOT 1
- Compilation failed: plugin needed to handle lto object HOT 7
- Parsing error with var-len arrays in UDT HOT 1
- CRT _timezone undefined reference issue on 64-bit windows
- feature request : add command line option to specify the toolchain prefix HOT 3
- Freebasic compiler driver tutorial
- I have a beautiful dream and I wonder if it can come true. HOT 1
- various argument errors attempting to use curses.bi on linux HOT 1
- _FILE_OBJECT bug HOT 5
- The _DISPATCHER_HEADER structure is incorrect HOT 2
- _IRP Statement bugfix HOT 6
- How to modify FB code to use FB built-in functions in driver development? HOT 1
- unit-tests stuck on ascii HOT 8
- FreeBASIC support for Linux on PowerPC and PowerPC64? HOT 4
- libstdc++-related problems in log-tests HOT 10
- Support for SOURCE_DATE_EPOCH HOT 4
- Golang and FreeBasic HOT 1
- File Append Bug HOT 1
- Date Format Bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbc.