FONT END will fail (illegal function call) if the font is "still in use" per PB documentation. Further investigation reveals that what the reader is meant to infer is that if you do this:
then FONT END will produce an illegal function call. This makes sense to a casual observer, though it would also make sense that there would be an option to do something like GRAPHIC FONT SET 0, or GRAPHIC FONT UNSET.
As it is, the ONLY (logical) way to end myFont??? appears to be to attach to another font entirely.
Not a big deal, but it can come up in certain cases (one may imagine). May I suggest either:
A. A mechanism of simply detaching the font so that it may be ended without having to resort to unnecessarily attaching to another font.
or;
B. That FONT END could, presumably, be made to not fail at all, since it stands to reason that the programmer would be intelligent enough to not END the font that they were still painting with.
Just a thought.
P.S. Maybe there is already a command to detach a font (within Powerbasic's command set)... anyone?
Code:
GRAPHIC SET FONT myFont??? FONT END myFont???
As it is, the ONLY (logical) way to end myFont??? appears to be to attach to another font entirely.
Not a big deal, but it can come up in certain cases (one may imagine). May I suggest either:
A. A mechanism of simply detaching the font so that it may be ended without having to resort to unnecessarily attaching to another font.
or;
B. That FONT END could, presumably, be made to not fail at all, since it stands to reason that the programmer would be intelligent enough to not END the font that they were still painting with.
Just a thought.
P.S. Maybe there is already a command to detach a font (within Powerbasic's command set)... anyone?
Comment