Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Change font style in 2D overlay, is it possible?

misterpaint
Registered User
Quote
2022-02-07 10:37:25

Hi all! Is possible to change font style in 2D overlay?
(dimension, font type, bold and other)

Thx


VP
Guest
Quote
2022-02-07 12:15:35

Yes, you can use any font you have installed to your system and you can change "bold" "italic" size etc. in the 2D overlay properties box, simply click "draw text" and then click in the "font" details-box to edit the details.

The only issue I've found with fonts (which is a big issue really) is that when you compile you game.exe, the fonts are not packed with the executable file - so if your client computer doesn't have the same font installed, it will default to a different font and will not display correctly.

If you use a different font, you'll have to add an installer to make sure your target client installs the required font.


just_in_case
Moderator
Quote
2022-02-07 12:23:32

Or maybe I can update my sprite sheet editor shader, to use an atlas image for the font with functionality to display "Text" as an overlay which will solve the issue of installing fonts for the client.

I will think about it and will see if it works, I will update the shader if it will work as expected.


VP
Guest
Quote
2022-02-07 14:20:22

That sounds like a great idea!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact