Skip to content

How to change or add custom fonts in ox_lib (notify and other UI components)? #41

@ChocodevX

Description

@ChocodevX

Hello,

I’m trying to figure out how to change the default font in ox_lib for notifications (lib.notify) and other UI elements like menus, progress bars, and contexts.

From what I see in the web/fonts/ folder, ox_lib already preloads Roboto and Roboto Mono with multiple weights via @font-face. However, I’d like to use a different font (for example, Noto Sans Thai) so that notifications and UI components display Thai text properly.

My questions are:

Is it possible to override the default font used in ox_lib.notify?

Can we add new fonts (e.g., .ttf files) into the web/fonts/ folder and reference them in CSS?

If notify in Lua doesn’t support custom fonts directly, is there a recommended way to switch to NUI-based notifications so that we can fully control fonts via HTML/CSS?

Are there any examples or best practices for integrating Google Fonts or custom .ttf files into ox_lib’s UI system?

Thanks in advance for any guidance!

This wording is polite, technical, and specific enough that maintainers or other developers will understand exactly what you’re asking.

👉 Do you want me to also prepare a shorter version (like a one‑paragraph summary) for GitHub Discussions, or keep it in this detailed format for Issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions