Jump to content

Font symbols


Recommended Posts

Hello!

I would like to use font symbols like Font Awesome. But my problem is how can i tell to the dxDrawText function to draw the youtube icon for example? The font awesome's website says the character code is &#xf167 for it. But in this format the html can use it. But how can i create a string which contains the f167 (hex) character code?

Is it even possible?

Link to comment
  • 4 months later...
On 2016. 12. 11. at 20:44, Jayceon said:

http://fontawesome.io/cheatsheet/

Innen magát az ikont másold ki és ha beillesztetted oda ahova szeretnéd egy üres négyzetnek kell lennie.

Esetleg, hogy tudd milyen ikont használsz, csinálj egy táblát.


local icons = {
	["automobile"] = "",
  	["trash"] = "",
}

--dxDrawText(icons["automobile"], ...)

 

I translate it to English if it's oky.
He wrote this:

http://fontawesome.io/cheatsheet/

Select the icon you want and copy it. Paste it somewhere you want in the script and a square should be appear. 
Somhow like this: 

local icons = {
	["automobile"] = "",
  	["trash"] = "",
}

--dxDrawText(icons["automobile"], ...)

(The square is the character code of your character)

Edited by dugasz1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...