Fixed width fonts

Discuss any general programming issues here
Post Reply
phipslk
Posts: 34
Joined: Sun Oct 29, 2023 7:21 pm

Fixed width fonts

Post by phipslk »

Is it possible to tell FontRequest() only show fixed witdth fonts?
plouf
Posts: 585
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Fixed width fonts

Post by plouf »

no

but maybe, as a workaround, you can compare FontWidth("IJ1") with FontWidth("OWM") to see if it equal ?
Christos
User avatar
jPV
Posts: 675
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Fixed width fonts

Post by jPV »

I think this uses a font requester from the operating system underneath. For example, the font requester in MorphOS does have an option to show only Fixed Width fonts (or bitmap fonts or unicode fonts etc.). So FontRequest() with Hollywood on MorphOS does have this option already.
phipslk
Posts: 34
Joined: Sun Oct 29, 2023 7:21 pm

Re: Fixed width fonts

Post by phipslk »

plouf wrote: Sat Nov 23, 2024 8:48 pm but maybe, as a workaround, you can compare FontWidth("IJ1") with FontWidth("OWM") to see if it equal ?
that would be a nice command, FontWidth(). I take dimensions of a TextObject with the letter and GetAttribute() for size measuring
phipslk
Posts: 34
Joined: Sun Oct 29, 2023 7:21 pm

Re: Fixed width fonts

Post by phipslk »

jPV wrote: Sun Nov 24, 2024 4:25 pm I think this uses a font requester from the operating system underneath. For example, the font requester in MorphOS does have an option to show only Fixed Width fonts (or bitmap fonts or unicode fonts etc.). So FontRequest() with Hollywood on MorphOS does have this option already.
I think on AmigaOS 3.x this is an option too. But I can't set it as default via Hollywood.
User avatar
airsoftsoftwair
Posts: 5626
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Fixed width fonts

Post by airsoftsoftwair »

phipslk wrote: Mon Nov 25, 2024 7:42 pm that would be a nice command, FontWidth(). I take dimensions of a TextObject with the letter and GetAttribute() for size measuring
No need to create a text object, just use TextWidth() or TextExtent().
Post Reply