enum final Optional · pdftoolkit/html-to-pdf 0.4.0

PDF\HtmlToPdf\Font\FontStyle

Read the source declaration ↗

Inheritance and contracts

Interfaces : BackedEnum, UnitEnum

Declared methods

cases()

public static function cases(): array

Declared by PDF\HtmlToPdf\Font\FontStyle · View the code ↗

from()

public static function from(string|int $value): static

Declared by PDF\HtmlToPdf\Font\FontStyle · View the code ↗

tryFrom()

public static function tryFrom(string|int $value): ?static

Declared by PDF\HtmlToPdf\Font\FontStyle · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly string $namePDF\HtmlToPdf\Font\FontStyle
public readonly string $valuePDF\HtmlToPdf\Font\FontStyle

Enum cases

  • Regular = "regular"
  • Bold = "bold"
  • Italic = "italic"
  • BoldItalic = "bold-italic"