Select to view content in your preferred language

Font Family - Javascript API

5692
1
Jump to solution
02-25-2016 01:07 PM
MartinSirkovsky
Regular Contributor

Hi.

I am setting a label class to my feature layer. I have defined the parameters for the label class, between else font. The font​ object has a property family. I am wondering what fonts can I use, where are they coming from. Is there some kind of list of available fonts, or can I use any font which is on server where the page is running, or is it a font on a client's side?

Thanks

Martin

0 Kudos
1 Solution

Accepted Solutions
AlexanderNohe1
Honored Contributor

Hello Martin,

I believe font-family is the same option that is available via CSS.  If you select a font-family, the client machine will search for it and if it has it, display it.  Alternatively, it will fall back on a previous font style.

This documentation may be of some use:

CSS font-family property

View solution in original post

1 Reply
AlexanderNohe1
Honored Contributor

Hello Martin,

I believe font-family is the same option that is available via CSS.  If you select a font-family, the client machine will search for it and if it has it, display it.  Alternatively, it will fall back on a previous font style.

This documentation may be of some use:

CSS font-family property