Envi Scripts Documentation
  • 👋Introduction
  • 🌉Envi-Bridge
  • ⚙️Compatibility
  • 🖨️Licensing
  • 📒Premium Scripts
    • ❔FAQ / COMMON ISSUES
    • ‼️FIRST STEPS (READ FIRST)
    • ⭐Useful Resources
    • 👀Envi FiveM Showcase Server
    • 📸Envi-Camera
      • ❗First Steps
      • Inventory Setup
      • Editable Functionality
      • Complete Lens Kit
      • Printing Photos
      • Ped Reactions
      • Exports
      • Config File
    • 🪚Envi-ChopShop
      • Inventory Setup
      • How to Chop
      • Props for AntiCheats
      • Editable Functionality
      • Config File
    • 🪣Envi-Dumpsters
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Exports
      • Exclusive Zones
      • Survival Items
      • Shopping Carts
      • Hobo Bowling
      • Hobo Taxi
      • Rats and Racoons
      • Config File
      • V2 Config
    • 💺Envi-Ejector-Seats
      • Inventory Setup
      • How to Eject
      • Editable Functionality
      • Config File
    • 🔥Envi-Flamethrower (Standalone)
      • Common Issues
      • Inventory Setup
      • Refueling
      • Editable Functionality
      • Config File
    • 🪽Envi-Flight-Suits
      • Inventory Setup
      • Flight Suits
      • Config File
    • 🍜Envi-Food-Truck
      • ❗VooDoo Required
      • Common Issues
      • Inventory Setup
      • Adding Additional Grill Items
      • Unique Shops with Liveries
      • Spawning the Trucks
      • Using the Trucks
      • Exports
      • Config File
    • 💍Envi-Forever-Rings
      • Inventory Setup
      • Editable Functionality
      • Ring Shop MLO
      • Config File
    • 💻Envi-Hack-Minigames (Standalone)
      • The Worm
      • Password
      • Firewall
      • Node Runner
      • Config File
    • 🎞️Envi-HUD
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Adding Custom Weapons
      • Change Logo
      • Custom Fonts
      • Converting Notifications
      • Converting Progress Bars
      • Editable Functionality
      • Settings Save Location
      • Exports and Events
      • Commands
      • Vehicle Control
      • Anti Muscle Spasm
      • Ragdoll
      • Config File
    • 🎇Envi-Items
      • Inventory Setup
      • Config File
    • 🚑Envi-Medic
      • Common Issues
      • Fully Disable Transport to Hospital
      • Failsafe
      • Ambulance Scripts
      • Vehicle Fuel
      • Vehicle Keys
      • Exports
      • Config File
    • ☄️Envi-MethVan
      • Common Issues
      • Inventory Setup
      • Cooking Process
      • Editable Functionality
      • Adding a Vehicle
      • Config File
    • 🍃Envi-Megablower9000 (Standalone)
      • Inventory Setup
      • Config File
    • 👯Envi-Population (Standalone)
      • ❗Initial Setup
      • Common Issues
      • Config File
    • 🗒️Envi-Prescriptions
      • Common Issues
      • Inventory Setup
      • Editable Functionality
      • Config File
    • 🔧Envi-Sabotage
      • ❗First Time Setup
      • Common Issues
      • Inventory Setup
      • Exports
    • 🛒Envi-Shops
      • Common Issues
      • Inventory Setup
      • Exports
      • Editable Functionality
      • Config File
    • 📱Envi-Trap-Phone
      • Common Issues
      • Inventory Setup
      • Commands
      • Exports
      • Adding Custom Drugs
      • Using the Phone
      • Disabling Extra Services
      • Config Files
        • config.lua
        • dialogueSettings.lua
        • extraServices.lua
        • gangZoneSettings.lua
        • personalitySettings.lua
        • specialContactSettings.lua
    • 👰Envi-Weddings
      • Inventory Setup
      • Starting Info
      • Manually Removing Data
      • Commands
      • Config File
    • 🎅Envi Xmas-Weapons (Standalone)
      • Inventory Setup
      • Config File
    • 🗡️Envi-Zombie-Weapons (Standalone)
      • Inventory Setup
    • 🧟‍♂️Envi-Zombies
Powered by GitBook
On this page
  • Using Google Fonts
  • Using Custom Fonts (Non-Google Fonts)
  • Summary
  1. Premium Scripts
  2. Envi-HUD

Custom Fonts

PreviousChange LogoNextConverting Notifications

Last updated 24 days ago

This document explains how to add custom fonts to your project and how to use them. You can either use fonts from or include your own custom font files.


Using Google Fonts

When using fonts from Google Fonts, there are two methods available:

Method 1: Using @import in Your CSS

  1. Select Your Font:

    • Go to and search for the desired font.

    • Click on the font to view its details.

  2. Obtain the @import Code:

    • Click the "Get font" button.

    • Click "Get embed code".

    • Choose the @import option.

    • Click "Copy code" to copy the code snippet.

    • Note: Only copy the code inside the <style>...</style> tags. Remove the <style> tags before using the code.

  3. Add the Code to Your CSS:

    • Open your project's CSS file (e.g., style-...css).

    • Paste the @import code below any existing @import statements.

  4. Configure the Font:

    • Open the configuration file located at web/build/config/hud/styles/base.js.

    • Add the new font details according to the instructions provided in that file.


Method 2: Using <link> in Your HTML

  1. Select Your Font:

    • Click on the font to access its details.

  2. Obtain the <link> Code:

    • Click the "Get font" button.

    • Click "Get embed code".

    • Choose the <link> option.

    • Copy the provided <link> snippet.

  3. Add the Code to Your HTML:

    • Open your main HTML file (e.g., index.html).

    • Paste the <link> code above the <title> tag (for example, above <title>Vite + React + TS</title>).

  4. Configure the Font:

    • As in Method 1, update the configuration file at web/build/config/hud/styles/base.js with the new font details.


Using Custom Fonts (Non-Google Fonts)

If you are not using fonts from Google Fonts and have your own font files (such as .ttf, .otf, etc.), follow these steps:

  1. Add Font Files:

    • Place your custom font files into a folder named fonts within your project.

  2. Define the Font with @font-face:

    • Open your project's CSS file (e.g., style-...css).

    • Locate the existing @font-face code snippet provided by the UI as a template.

    • Copy and modify this code to reference your custom font files.

    • Note: Ensure that the font name and file format are exactly correct.

  3. Configure the Font:

    • After updating your CSS with the new @font-face definitions, open the configuration file at web/build/config/hud/styles/base.js.

    • Add the new font details to integrate it fully into the UI.


Summary

  • Google Fonts:

    • Method 1: Use the @import option in your CSS.

    • Method 2: Use the <link> option in your HTML.

  • Custom Fonts (Non-Google Fonts):

    • Place your font files in the fonts folder.

    • Define the font using @font-face in your CSS.

  • Final Step for All Methods:

    • Update the configuration file at web/build/config/hud/styles/base.js to include the new font.

By following these instructions, you can easily add and use custom fonts in your project.

Navigate to and choose the font you want to use.

📒
🎞️
Google Fonts
Google Fonts
Google Fonts