Comments (5)
Checked with fVDI and TOS output is the exact same than EmuTOS output for me (checked in Hatari with Falcon and STE emulation, but I would assume that shouldn't make a difference).
TOS output:
30 new screen fonts loaded
font 0, 6x6 system font, id = 1
font 1, 6x6 system font, id = 1
font 2, Comic Sans MS Regular, id = 7059
font 3, Courier New Bold, id = 7203
font 4, Trebuchet MS Bold, id = 7612
EmuTOS output:
30 new screen fonts loaded
font 0, 6x6 system font, id = 1
font 1, 6x6 system font, id = 1
font 2, Comic Sans MS Regular, id = 7059
font 3, Courier New Bold, id = 7203
font 4, Trebuchet MS Bold, id = 7612
...
I admit that I fixed your code first as there were small imperfections (probably not the cause of the differences you are experiencing, but anyway):
vqt_fontinfo()
array indexing is zero-based- fonts loaded with
vst_load_fonts()
are appended to the font list. The number of fonts already present beforevst_load_fonts()
is available fromwork_out[10]
after opening the virtual workstation.
To create a list of all available fonts, your loop should look like this, then:
for( font_idx=0; font_idx<new_fonts+work_out[10]; font_idx++ ) {
To further track down the differences you are observing, your GDOS setup and fonts are most likely required. Would you be able to make them available somehow?
from emutos.
Hi,
Thanks for the response.
My GDOS setup is the standard GDOS 1.1, fonts are standard atari fonts distributed with GDOS.
Here's a link -> http://www.atarimania.com/utility-atari-st-gdos-distribution-disk_25889.html
My assign.sys file is already posted above.
The test should be repeatable with any GDOS and any gem fonts.
{Edit:
I wonder, in your check above, is there only one instance of each font (face) in the fontchain?
The issue I am seeing would occur only if the fontchain held gem fonts of different sizes and with the same id.
The vdi_vqt_name() function is not skipping the second and following fonts with the same id, hence the difference in results.
It should be counting only the unique font id values.
Further, if you change the end condition in the loop in my test to say
for( font_idx=0; font_idx<new_fonts+20; font_idx++ ) {
you can see that the vdi_vqt_name() function is counting all gem fonts at all sizes.
]
from emutos.
Hi!
I'm one of the EmuTOS maintainers. I'll take a look at this and get back to you. For future reference, you'll probably get a faster response if you post to the EmuTOS list: [email protected]. That's where you'll also get to hear about new features, upcoming releases etc.
If you're interested, you can sign up at:
https://sourceforge.net/projects/emutos/lists/emutos-devel
Roger Burrows
from emutos.
Thanks again for the report. Your diagnosis was correct and this is now fixed in the repository. As far as using vwk->loaded_fonts is concerned, that only points to the loaded fonts, whereas vqt_name() must scan all the fonts including the system font.
from emutos.
Many thanks for the quick fix.
I'll start using this right away.
from emutos.
Related Issues (20)
- master branch 192k ROM crashes on Hatari ST/MegaST HOT 20
- setting ENABLE_KDEBUG globally doesn't build HOT 1
- Amiga console buffering: Couldn't the end of buffer be stored instead of looping through the buffer for every character added to it HOT 1
- Serial port doesn't honour X-ON/X-OFF flow control. HOT 1
- Request For Enhancement: standalone EmuTOS hard disk driver HOT 3
- EmuTOS 1.0/1.0.1 Xboot program "Autostart" HOT 6
- Feature request: EmuCON as an accessory? HOT 1
- emutos-512k-1.1.1 supports atari-tt mode, but emutos-1024k-1.1.1 doesn't HOT 2
- emutos.prg or floppy cannot be started from emutos cart HOT 2
- EmuTOS 256KB crash on MiSTer FPGA HOT 8
- Traders game hangs with EmuTOS HOT 5
- ExtenDOS does not work with emutos HOT 2
- Update Vampire V2 HOT 2
- Enhancement: Allow for aspect ratio correction HOT 10
- Select/Format floppy drive bug HOT 5
- embedding emutos roms in vAmiga HOT 4
- `Bconmap` implementation does not respect `bconmap_root.maptab` HOT 1
- 040/060: missing data cache flushes prevent use of copyback mode HOT 2
- Incompatibilities of EmuTOS HOT 13
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 emutos.