Home / Function/ getFontStyle() — supabase Function Reference

getFontStyle() — supabase Function Reference

Architecture documentation for the getFontStyle() function in CodeBlock.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  cbece441_2217_1246_311f_24ce6fd673f4["getFontStyle()"]
  7fe1cc88_66ab_b68a_c5a3_eb5f089de9c4["CodeLine()"]
  7fe1cc88_66ab_b68a_c5a3_eb5f089de9c4 -->|calls| cbece441_2217_1246_311f_24ce6fd673f4
  style cbece441_2217_1246_311f_24ce6fd673f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/ui/CodeBlock/CodeBlock.utils.ts lines 14–30

export function getFontStyle(styleFlags: number): CSSProperties {
  let style: CSSProperties = {}

  if (styleFlags & FontStyle.Italic) {
    ;(style ??= {}).fontStyle = 'italic'
  }

  if (styleFlags & FontStyle.Bold) {
    ;(style ??= {}).fontWeight = 'bold'
  }

  if (styleFlags & FontStyle.Underline) {
    ;(style ??= {}).textDecoration = 'underline'
  }

  return style
}

Subdomains

Called By

Frequently Asked Questions

What does getFontStyle() do?
getFontStyle() is a function in the supabase codebase.
What calls getFontStyle()?
getFontStyle() is called by 1 function(s): CodeLine.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free