2D Toolkit Forum

2D Toolkit => Support => Topic started by: atmuc on November 19, 2013, 07:46:35 am

Title: Font Size
Post by: atmuc on November 19, 2013, 07:46:35 am
i have a background with a text. at photoshop i matched Arial Bold 15 to this text. at bmfont i generated Arial Bold 15. i used background in an atlas and used font with your font script not imported to an atlas. i used fixed same size and fixed same camera size on both. scale is 1 for all. they use the same orth camera. font is smaller than photoshop. when i generated font with size 18 in bmfont it is ok on unity.

what is wrong with this? which one is correct?
Title: Re: Font Size
Post by: unikronsoftware on November 19, 2013, 12:11:01 pm
Probably the PPI? Font size 15 in Photoshop isn't in pixels is it?
I've never had to match stuff up like this so I couldn't actually give you concrete suggestions here.
Title: Re: Font Size
Post by: atmuc on November 19, 2013, 12:23:28 pm
in photoshop it says 15 pt. i want to learn how to apply my photoshop design to unity with 2dtoolkit as pixel perfect. i do not know if image dpi or other things effect this.
Title: Re: Font Size
Post by: unikronsoftware on November 19, 2013, 12:32:58 pm
pt != pixels.
pt == pixels when at 72 dpi.

You could try setting the text units to pixels in photoshop and work from there, maybe? I'm not sure what else to suggest, as I said I've not really had to do this before.