Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FontProperties

Hierarchy

  • FontProperties

Index

Properties

Optional decoration

decoration: "none" | "underline" | "line-through"

The text decoration.

Read more...

Optional family

family: string

The font family of the text.

The font family of the text. The possible values are dependent upon the layer type, and if you working with a MapView or a SceneView. See the Labeling guide page for detailed explanation, or click the Read more below. >>> esri-read-more Font families for 3D SceneViews The supported font families for 3D SceneViews are dependent upon the fonts installed on the user's computer and web browser. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. Font families for 2D MapImageLayer The supported font families for MapImageLayers in a MapView are dependent upon the fonts installed on the ArcGIS Server that published the layer. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. Font families for 2D FeatureLayer, CSVLayer, StreamLayer, and TextSymbol The supported font families are based on hosted fonts files in .pbf format. By default, the fonts available are mostly the same ones used by the Esri Vector Basemaps. These fonts are available via https://static.arcgis.com/fonts. The URL can be configured to point to your own font resources by setting the esriConfig.fontsUrl property. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is sans-serif. This uses the Arial Unicode MS font file. > A preview of the fonts listed in the following table are available in the Labeling overview page. List of currently supported fonts: Read more...

Optional size

size: string | number

The font size in points.

Read more...

Optional style

style: "normal" | "italic" | "oblique"

The text style.

Read more...

Optional weight

weight: "lighter" | "normal" | "bold" | "bolder"

The text weight.

Read more...

Generated using TypeDoc