+ Reply to Thread
Results 1 to 3 of 3

Thread: [Gadget] Gadget font modification

  1. #1
    Soulwalker
    Join Date
    Aug 2013
    Posts
    8

    Default [Gadget] Gadget font modification

    I am trying to modify the font type of some of the gadgets.
    I have found this on Rift API :

    SetFont
    Function documentation:
    Sets the current font used for this element.
    Text:SetFont(source, font) -- string, string
    Parameters:
    font: The actual font identifier. Either a resource identifier or a filename.
    source: The source of the resource. "Rift" will take the resource from Rift's internal data. Anything else will take the resource from the addon with that identifier.
    But I don't quite understand what I should use as the "source" parameter.

    I made sure I have a font folder right in gadget folder, containing the fonts I want to use, and I put "font/Enigma.ttf" for eg. for the font parameter.

    The result is two rectangles (unknown characters, I guess) instead of "ms", for eg.

    Am I doing it right ?
    Last edited by s0ren; 08-09-2013 at 12:13 PM.

  2. #2
    Shield of Telara Adelea's Avatar
    Join Date
    Mar 2011
    Posts
    734

    Default

    The error message tells you what source neesd to be!

    Either the literal string "Rift", to use one of Rifts internal fonts, or an addon identifier (as found in the addons .toc file)
    http://forums.riftgame.com/image.php?type=sigpic&userid=125779&dateline=13553  38065

  3. #3
    Soulwalker
    Join Date
    Aug 2013
    Posts
    8

    Default

    I used "Rift" and I have inverted the "source" and "font" positions. x_x
    Thank you, works like a charm, now

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts