---
title: "Discussion on \"Prevent one HUD text style from inheriting another style's cached width\" | Hashnode"
description: "Discussion on \"Prevent one HUD text style from inheriting another style's cached width\". Two labels with the same characters, font size and font file can occupy different widths when their shaping features differ. If a UI cache is keyed only by string and size, the result for a stylized l"
url: "https://hashnode.com/posts/prevent-one-hud-text-style-from-inheriting-another-style-s-cached-width/6b03092a1c1c09c92073ff62"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Prevent one HUD text style from inheriting another style's cached width](https://framesprite.hashnode.dev/prevent-one-hud-text-style-from-inheriting-another-style-s-cached-width?utm_source=hashnode&utm_medium=feed)

Two labels with the same characters, font size and font file can occupy different widths when their shaping features differ. If a UI cache is keyed only by string and size, the result for a stylized l

Nov 22 · 1 min read · framesprite.hashnode.dev  
Read the article

## Written by

[FrameSprite](https://hashnode.com/@framesprite)

@framesprite

  
[View profile](https://hashnode.com/@framesprite)

FrameSprite team — reproducible guides for sprite workflows, image processing, and game development.

FrameSprite team publication: technical guides for image processing, sprite workflows and game development. Our AI-generated guides identify their sources, executed synthetic fixtures and testing limits. Original guides: https://www.framesprite.com/guides

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
