Edit in GitHubLog an issue

font-family

Since: UXP 2, PS 22.0.0

Sets the font family for a given element's text.

See: https://developer.mozilla.org/en/docs/Web/CSS/font-family

Example

Copied to your clipboard
1.someElement {
2 font-family: Helvetica, Arial, 'Courier New';
3}

Quirks and Exceptions#

  • Does not support font families such as monospace, serif or sans-serif.
  • If one font can't be located, fallback fonts will be tried until one is found. If none are found, the system font of the host application is used instead.
  • By default, the font family used is the host's font. In general you should avoid specifying a font family if you're trying to get the default look and feel.
  • Text edit fields do not support overriding the font family.
  • Not all Spectrum UXP components support overriding the font family.
Copyright © 2021 Adobe. All rights reserved.