Project

General

Profile

Actions

Bug #1000

open

The Font$() command does not recognize the default font any more. (Get Font Number works though)

Added by Brian Flanagan over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
12/18/2022
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Apparently, the** Font$()** command does not recognize the default font.

numFonts = Get Font Number
Print "Number of fonts:";numFonts ' this works, so AOZ knows it exists.
Print Font$(0) ' Returns "Font not available" error
Print Font$(1) ' Returns "Font not available" error

We should be providing information about the default font.
If I add a Google font...

#googleFont: "Baloo",48
Print "Number of fonts:";numFonts ' AOZ gets 2 now
Print Font$(0) ' Returns the Baloo information
Print Font$(1) ' Returns "Font not available" error

Even though Font number = 2, the second font isn't recognized.
Also, the Default Font should ALWAYS be font 0.
After adding the Google Font, apparently, it becomes font 0.

NOTE: In AMOS - Amiga, Font$(0) should return an empty string.
The font numbers started at 1. (at least in UAE)

Actions #1

Updated by Francois Lionet over 1 year ago

Fixed, there was a mix-up between the font of the application and the fonts of the extensions like the debugger.
If you do NOT add any Google font, then Get Font Number will return 0.

Actions #2

Updated by Francois Lionet over 1 year ago

ANd in Amiga mode, Get Font$( 0 ) returns ""

Actions #3

Updated by Francois Lionet over 1 year ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF