Coder Social home page Coder Social logo

Comments (5)

mfro0 avatar mfro0 commented on May 9, 2024

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 before vst_load_fonts() is available from work_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.

tevorbl avatar tevorbl commented on May 9, 2024

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.

anodynesoftware avatar anodynesoftware commented on May 9, 2024

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.

anodynesoftware avatar anodynesoftware commented on May 9, 2024

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.

tevorbl avatar tevorbl commented on May 9, 2024

Many thanks for the quick fix.
I'll start using this right away.

from emutos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.