Page 1 of 1

Sloping off

Posted: Fri Nov 21, 2025 8:01 pm
by richmond62
fontstyles

does NOT yield a font style, it yields the font's slope class.

Re: Sloping off

Posted: Fri Nov 21, 2025 9:16 pm
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

Re: Sloping off

Posted: Fri Nov 21, 2025 9:18 pm
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

Re: Sloping off

Posted: Fri Nov 21, 2025 9:20 pm
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.