Sloping off

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Sloping off

Post by richmond62 »

fontstyles

does NOT yield a font style, it yields the font's slope class.
stam
Posts: 3214
Joined: Sun Jun 04, 2006 9:39 pm

Re: Sloping off

Post by stam »

richmond62 wrote: Fri Nov 21, 2025 8:01 pm fontstyles

does NOT yield a font style, it yields the font's slope class.
To be pedantic (as no much is happening any more on this forum), two comments:
  1. Why is this a post
  2. Incorrect


Slope class refers to a font's degree of slant, which is typically categorised as normal (upright), italic, or oblique
fontStyles (<fontName>, <fontSize>) returns the list of available styles for a font. This include things like "bold" which has nothing to do with slant.
The Dictionary wrote: The fontStyles function returns a list of available styles, one per line.
...
The font styles are returned in a return delimited list, such as the following one:
plain
bold
italic
bold-italic
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: Sloping off

Post by dunbarx »

Richmond,

The answer to your problem is in the other thread, Ruritanian letters have unicode values. You can sort away.

What is a "slope class"? FontStyles are things like Plain" and "Bold".

Craig
stam
Posts: 3214
Joined: Sun Jun 04, 2006 9:39 pm

Re: Sloping off

Post by stam »

dunbarx wrote: Fri Nov 21, 2025 9:18 pm What is a "slope class"? FontStyles are things like Plain" and "Bold".
Google is your friend.
But if you can't be bothered see my previous response.
Post Reply