Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greubel
Visitor

Font Get() return value ?

What are the parameters in the string returned by font.Get(String Family, integer size, integer weight, Boolean italic) as String

Example = ",38,-1,5,2,1,0,0,0,0 "

p[0] = () = family
p[1] = (38) = font size
p[2] = (-1)
p[3] = (5)
p[4] = (2)
p[5] = (1) = italic
p[6] = (0)
p[7] = (0)
p[8] = (0)
p[9] = (0)

Anyone know ?
Reason is, I'm trying to increase the font weight with no success.
0 Kudos
1 REPLY 1
RokuMarkn
Visitor

Re: Font Get() return value ?

The numbers in order are: point-size, pixel-size, style-hint, weight, style, underline, strikeout, fixed-pitch, and raw-mode. Not all of these are used. To increase the weight (boldness) of a font, the font file needs to provide support for it.

--Mark
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.