FontOps1.3.0 Asset Store ↗
  1. FontOps
  2. Type system

Role naming guide

How to name your typographic roles so your team speaks the same language, and the names FontOps recognises when it applies a palette.

Updated for 1.3.0

Why role names matter

Role names are how your team communicates about typography. A good name tells you where and how a style should be used without opening the inspector. Consistent naming also makes the Palette Extractor, APPLY… and compliance checking more useful. The Text Auditor names the closest role for a failing text, so a good role name tells you at once what that text should be. APPLY… reads role and GameObject names to recognise each text's role (see Names FontOps recognises).

Rule of thumb: If you can’t tell where a role belongs just from its name, rename it.

Common naming systems

There is no single “right” system. Pick one that fits your project and stick with it.

1. Semantic, by purpose

Names describe the function of the text, not its appearance. This is the most common system and what most design tools (Figma, Material Design) use.

Role NameTypical UseExample
DisplayHero text, splash screens, marketing headersGame title on main menu
HeaderSection or screen titles“SETTINGS”, “LEADERBOARD”
SubheaderSecondary headings within a section“Audio Settings”, “Team Roster”
BodyMain readable text, descriptions, paragraphsItem descriptions, tutorial text
CaptionSmall supporting text, timestamps, metadata“Last played 2 hours ago”
LabelField labels, form names, short identifiers“Username:”, “Score:”
ButtonInteractive button text“PLAY”, “CONFIRM”, “CANCEL”
OverlineSmall all-caps text above a heading“CHAPTER 3” above “The Dark Forest”
TooltipHover/contextual help text“Press E to interact”
BadgeStatus indicators, tags, counters“NEW”, “3/10”, “MVP”
Material Design scale: Display > Headline > Title > Body > Label. Each has Large / Medium / Small variants. FontOps doesn’t enforce this — use it if it fits.

2. By size (T-shirt sizes)

Names describe relative size. Simple and unambiguous, but doesn’t communicate purpose. Works well for small teams or prototyping.

Role NameSize RangeTypical Use
XXL48–72pxSplash / hero text
XL32–48pxScreen titles
LG24–32pxSection headers
MD16–24pxBody text, descriptions
SM12–16pxCaptions, labels
XS8–12pxFine print, legal, badges

3. Hierarchical (H1–H6)

Borrowed from HTML/web conventions. Straightforward for developers but less intuitive for designers.

Role NameEquivalentExample
H1Display / Page TitleMain menu title
H2Section HeaderSettings category
H3Subsection HeaderAudio > Music Volume
BodyParagraph textDescriptions
SmallFine printCopyright, version

4. By context (screen or feature prefix)

For large projects with distinct visual areas (e.g., HUD vs. menus vs. dialogue). Prefix the role name with the context.

Role NameWhereExample
HUD/ScoreIn-game overlayScore counter
HUD/TimerIn-game overlayCountdown clock
HUD/AmmoIn-game overlayAmmo count
Menu/TitleMenu screensScreen name
Menu/BodyMenu screensDescription text
Menu/ButtonMenu screensButton labels
Dialog/SpeakerDialogue systemCharacter name
Dialog/LineDialogue systemSpoken text
Dialog/ChoiceDialogue systemPlayer response options
Scoreboard/NameLeaderboardPlayer name column
Scoreboard/StatLeaderboardK/D/A numbers
Scoreboard/HeaderLeaderboardColumn headers
When to use this: When the same font size/style serves completely different purposes in different parts of your game. A “Body” in a menu and a “Body” in a HUD might look identical today but evolve differently. Separate roles let you change them independently.

Real-world examples

Mobile casual game

A party game with bright, bouncy UI. One font family, multiple weights.

RoleFontSizeStyleUsed For
DisplayBaloo 248pxBoldGame title, win/lose splash
HeaderBaloo 232pxBoldScreen titles
BodyBaloo 220pxRegularRules text, descriptions
ButtonBaloo 224pxBoldPLAY, SETTINGS, BACK
CaptionBaloo 214pxRegularPlayer count, lobby code
BadgeBaloo 212pxBoldNEW, 1ST, MVP

Competitive tactical shooter

Dark UI with high information density. Two font families — sans-serif for UI, monospace for data.

RoleFontSizeStyleUsed For
HUD/ScoreRajdhani28pxBoldKill count, round score
HUD/TimerShare Tech Mono24pxRegularRound timer, bomb timer
HUD/AmmoShare Tech Mono20pxRegular30/90 ammo display
Menu/TitleRajdhani36pxBoldLOADOUT, OPERATORS
Menu/BodyRajdhani16pxRegularOperator bios, patch notes
Menu/ButtonRajdhani18pxBoldREADY, QUEUE, EXIT
Scoreboard/NameRajdhani16pxRegularPlayer names
Scoreboard/StatShare Tech Mono14pxRegularK/D/A columns
Scoreboard/HeaderRajdhani12pxBoldColumn headers (KILLS, DEATHS)

Story-driven RPG

Rich narrative with dialogue, inventory, and world-building lore. Three font families.

RoleFontSizeStyleUsed For
DisplayCinzel56pxBoldChapter titles, location reveals
HeaderCinzel32pxRegularMenu headers, quest log titles
BodyLora18pxRegularItem descriptions, lore entries
Body ItalicLora18pxItalicFlavour text, internal thoughts
Dialog/SpeakerCinzel20pxBoldCharacter name above dialogue
Dialog/LineLora20pxRegularSpoken dialogue text
Dialog/ChoiceLora18pxRegularPlayer response options
UI/LabelNunito Sans14pxRegularStat names: STR, DEX, INT
UI/ValueNunito Sans16pxBoldStat values: 42, +5, 1200 XP
UI/ButtonNunito Sans16pxBoldEQUIP, SELL, USE
TooltipNunito Sans13pxRegularHover info on items/skills
CaptionNunito Sans11pxRegularRarity, weight, quest markers

Minimalist puzzle game

Clean, simple. One font, few roles.

RoleFontSizeStyleUsed For
TitleInter36pxLightLevel name, game title
BodyInter18pxRegularInstructions, hints
ButtonInter16pxMediumRESTART, NEXT, MENU
CounterInter24pxBoldMove count, timer

Names FontOps recognises

When you press APPLY… in My Fonts › Palettes, FontOps guesses the role each text plays. Names are one of its strongest clues. It reads two kinds: the name of the GameObject that holds the text, and the role names in your palette. Name both by job and Apply… gets most texts right the first time.

Keywords

FontOps splits a name into words where a lowercase letter meets a capital, and at spaces, underscores, dashes, slashes and other punctuation (DialogueBody → dialogue, body; Caption_Version → caption, version), then looks for these keywords. A word only has to start with one: Description counts as desc, Dialogue as dialog.

Reads asKeywords
Headertitle header heading headline h1 display hero banner
Subheadersubtitle subhead h2 h3 speaker
Bodybody desc dialog paragraph message content story lore
Captioncaption label hint footnote note tooltip legend small
Buttonbutton btn cta
  • The last keyword decides. FontOps reads a name from the end, so TitleLabel reads as a Caption and LabelTitle as a Header. One exception: subtitle or subhead anywhere in a name, or h2 or h3 as a word of its own, makes it a Subheader.
  • A role named in the GameObject wins. When the full name of one of your roles (3+ characters, ignoring case, spaces and punctuation) appears in a GameObject's name, that is the strongest name clue. A role called Score claims ScoreText; a role called HUD/Score claims HUD_Score or HudScoreText. This is how custom roles without a keyword get picked by name.
  • The parent's name helps. If the text's own name has no keyword (Unity's default Text (TMP), say), FontOps reads its parent's name instead, as a weaker clue. A Text (TMP) inside TitleBar leans Header.
  • Text inside a Button is Button text. A text with a uGUI Button on itself or any parent leans strongly to your Button role, whatever its name. A text that is neither under a Button nor named like one is pushed away from the Button role.

How names combine with other clues

A name is one clue among several. FontOps weighs them all and picks the role with the best score.

  • An existing applier comes first. A text whose FontPaletteApplier already uses a role of the same name keeps that role. If this palette has no role of that name, the old role name is read with the keywords above, so an applier on Title moves to this palette's Header. That is why swapping a screen to another palette is one APPLY.
  • Size rank. FontOps ranks the text sizes it found, largest first, and lines them up with your roles from Header down to Caption. With only one or two sizes in scope, it compares each text's point size with each role's size instead.
  • Role names without a keyword (XL, Badge, HUD/Score) are placed by their size: the largest reads as a Header, then Subheader, Body and Caption as sizes go down. Only a role named with button, btn or cta counts as a Button role.
  • Style and shape. Bold and italic that match a role's style help a little. ALL CAPS leans Header, Button or Caption. Two or more lines, or 60+ characters, leans Body and away from Header and Button.
  • Odd ones out. A text in a font most of the others don't use, at a size nothing else uses, with no name to explain it, looks hard-coded. FontOps gives it low confidence.

What you see in Apply…

  • Each row shows the role FontOps picked, a dot for how sure it is (hover the dot for the percentage), and the reason: its strongest clues, such as the name, the size rank, inside a Button or the line count.
  • Guesses under 40% start unticked. When two roles score almost the same, the reason ends with close to and the runner-up.
  • A text whose applier already uses this palette and role, with the ticks the APPLY mode sets, starts unticked, as Already uses Pop › Header. If its ticks differ (applied with FONTS ONLY, say), it starts ticked and the reason says what changes (see What APPLY writes). A text moving from another palette shows the swap, as Main › Caption → Pop › Caption.
  • Change any role from the row's dropdown, choose Skip, or untick the row before you press APPLY.
Apply palette rows for the Level Complete screen, 9 texts · 9 ticked. Home (ButtonText in prefab LevelCompleteButton, 3 instances): Button, Inside a Button, named ButtonText. Level Complete (Title): Header, Largest size here, named Title. Score (ScoreLabel): Caption, Smallest size here, named ScoreLabel. 48,250 (ScoreValue): Subheader, amber dot, Size rank 2 of 5. +120 (CoinsLabel): Caption, Smallest size here, named CoinsLabel.
Reasons in Apply… on Level Complete: the size and the name for most rows, Inside a Button and the name for the button row, and only the size rank for ScoreValue, whose dot is amber.

Example: the Get Started sample

The texts of the sample’s Level Complete screen are named so Apply… reads them right against the five default roles:

GameObjectReads asWhy
TitleHeadertitle, and the largest size here
ScoreValueSubheaderthe second-largest size here
MessageBodytwo lines of running text
ScoreLabel, CoinsLabel, GemsLabel, LivesLabel, WalletLabelCaptionlabel
ButtonText in the three Btn_ buttonsButtonbutton, and it sits inside a Button

All nine rows start ticked (the three ButtonText instances share one prefab row), so one APPLY with Pop gives every text its role. The audit tutorial on the Get started page then has you add a text of your own for the Text Auditor to find.

Best practices

Do

  • Be consistent. Pick one naming system and use it everywhere. Mixing “H1” with “Display” with “Title” creates confusion.
  • Name GameObjects by job too. ScoreLabel and PlayButton tell APPLY… what they are; Text (TMP) (3) doesn’t. See Names FontOps Recognises.
  • Name for function, not appearance. “Button” is better than “Bold 16px” — if you later change the button font to 18px, the name still makes sense.
  • Start small. 4–6 roles covers most simple games. Add more only when you have a real need, not “just in case.”
  • Use prefixes for complex projects. When the same visual treatment serves different contexts (HUD vs. menu), prefixed names like HUD/Score and Menu/Score prevent role pollution.
  • Document your palette. Use the palette’s Description field to note who owns it and when to use it vs. another palette.

Don’t

  • Don’t name after the font. “Montserrat Bold 14” is a description, not a role. If you switch fonts, the name becomes a lie.
  • Don’t create a role for every unique size. If two components differ by 1–2px, they probably belong to the same role. Standardize on one size.
  • Don’t use vague names. “Text”, “Default”, “Custom” tell you nothing. Be specific.
  • Don’t over-engineer. A puzzle game doesn’t need 20 roles. If your palette has more roles than screens, you’ve gone too far.

Cheat sheet

Not sure where to start? Use this minimal set and expand from there:

RoleWhat It Covers
HeaderScreen/section titles — the biggest text on any screen
BodyEverything readable — descriptions, instructions, paragraphs
ButtonAll interactive text — buttons, links, tappable labels
CaptionEverything small — metadata, timestamps, footnotes

That’s four roles. Most small-to-medium games never need more than six. Add Display if you have hero/splash text, and Label if you have form fields or stat sheets.

FontOps 1.3.0 · Unity 2022.3 LTS and Unity 6Something wrong or missing? [email protected]