🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page
  • Properties:
  • Static Functions:
  • Functions:

Was this helpful?

  1. Classes

Font

Functions for initialization of font for renderer. (Scripts\Fonts\...)

Properties:

Name
Type
Description

size

integer (Read Only)

Size of the font

Static Functions:

.GetDefault

Font.GetDefault(): Font

Gets a default Font object.

.Add

Font.Add(name: string, size: integer): Font

Argument
Type
Description

name

string

File name of font

size

integer

Size of font

Creates a new Font object.

Functions:

.Remove

Font_Object.Remove()

Removes a Font object. Please note that Font_Object will not become null.

.GetTextSize

Font_Object.GetTextSize(text: string): Vector2

Argument
Type
Description

text

string

Text that we get size of

Returns a Vector2 object with text size.

PreviousConsoleNextHash

Last updated 2 years ago

Was this helpful?

đŸ“Ļ
â˜¯ī¸