ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Change font style in 2D overlay, is it possible?
person icon
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

person icon
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.

person icon
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.

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

That sounds like a great idea!


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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