ID:2346552
 
Code:
var font_rsc = 'coders_crux.ttf'
description
parent_type = /ui
icon = 'descriptionBG.png'
var
visible = 0
mob/user

desc_maptext/desc_title
desc_maptext/desc_information
proc
Toggle_Visibility()
if(!user) return
if(!visible)
user.client.screen += src
else
user.client.screen -= src
visible = !visible
New(mob/m, title, description)
..()
if(!m) del(src)
user = m

desc_title = new/desc_maptext(title)
desc_title.update_offset(130, 23, 0, 145)

desc_information = new/desc_maptext(description)
desc_information.update_offset(132, 137, 2, 4)

src += desc_title
src += desc_information

desc_maptext
parent_type = /atom
layer = EFFECTS_LAYER
New(text = "Testing", center = 0)
if(center)
maptext = "<center><span class=\"maptext\">[text]</span></center>"
else
maptext = "<span class=\"maptext\">[text]</span>"
proc
update_offset(width, height, x, y)
maptext_width = width
maptext_height = height
pixel_x = x
pixel_y = y


Problem description:
I've tried lists, changing the variable name and even making it a variable with a single value. I don't know whether its just the font that isn't downloading. I've tried everything to resolve the issue but still i have yet to see any difference; I've tried using , , and the sorts to set the value to "Coder's Crux" but once more it doesn't work. I don't know whether it's a problem with my code or what but, I don't know.

In addition, I've now made a class in the Map element --> '.maptext{font-family:"Coder's Crux";}'. Now, with this code above that previously use to display text without the correct font face/family; now it doesn't show anything. I've been trying to attack the issue but, I don't know what it is.

Font Link: https://www.dafont.com/coders-crux.font
mob
var
description/description
verb
toggle_description()
set category = "DEBUG"
if(!description)
description = new/description(src, "Test Window", "SUPER CALA FRAGIL ISTIC EXPI ALA DOCIOUS")
description.Toggle_Visibility()
if(!description.visible) description = null


^ Just for the sake of being extra
I found out the reason why it was displaying nothing was due to the parent_type being an atom and not an obj but, it still doesn't resolve the lack of font