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 almost 2 years ago. Updated almost 2 years 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

Also available in: Atom PDF