MCPcopy Create free account
hub / github.com/simstudioai/sim / getTitleFontSize

Function getTitleFontSize

apps/sim/app/(landing)/og-utils.tsx:15–19  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

13} as const
14
15function getTitleFontSize(title: string): number {
16 if (title.length > 42) return TITLE_FONT_SIZE.small
17 if (title.length > 26) return TITLE_FONT_SIZE.medium
18 return TITLE_FONT_SIZE.large
19}
20
21async function loadGoogleFont(
22 font: string,

Callers 1

createLandingOgImageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected