Home / Function/ isSameFont() — react Function Reference

isSameFont() — react Function Reference

Architecture documentation for the isSameFont() function in ReactFiberConfigART.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2bd549a7_8b2f_a4fe_cdab_c2b612d92e9d["isSameFont()"]
  18cde195_5800_e07a_4f5e_1af7f71a810d["ReactFiberConfigART.js"]
  2bd549a7_8b2f_a4fe_cdab_c2b612d92e9d -->|defined in| 18cde195_5800_e07a_4f5e_1af7f71a810d
  bb6c2cd2_9425_0a02_415a_487f93a4a955["applyTextProps()"]
  bb6c2cd2_9425_0a02_415a_487f93a4a955 -->|calls| 2bd549a7_8b2f_a4fe_cdab_c2b612d92e9d
  style 2bd549a7_8b2f_a4fe_cdab_c2b612d92e9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-art/src/ReactFiberConfigART.js lines 108–122

function isSameFont(oldFont, newFont) {
  if (oldFont === newFont) {
    return true;
  } else if (typeof newFont === 'string' || typeof oldFont === 'string') {
    return false;
  } else {
    return (
      newFont.fontSize === oldFont.fontSize &&
      newFont.fontStyle === oldFont.fontStyle &&
      newFont.fontVariant === oldFont.fontVariant &&
      newFont.fontWeight === oldFont.fontWeight &&
      newFont.fontFamily === oldFont.fontFamily
    );
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isSameFont() do?
isSameFont() is a function in the react codebase, defined in packages/react-art/src/ReactFiberConfigART.js.
Where is isSameFont() defined?
isSameFont() is defined in packages/react-art/src/ReactFiberConfigART.js at line 108.
What calls isSameFont()?
isSameFont() is called by 1 function(s): applyTextProps.

Analyze Your Own Codebase

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

Try Supermodel Free