Welcome,
Guest
. Please
login
or
register
.
June 09, 2026, 10:35:35 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Wrong scaling of font icons with Atlas.pixelSize != 1
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wrong scaling of font icons with Atlas.pixelSize != 1 (Read 5359 times)
Asse
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 70
Wrong scaling of font icons with Atlas.pixelSize != 1
«
on:
January 02, 2014, 05:15:01 AM »
Font icons aren't scaled correctly when using atlases that have a pixel size unequal 1.
Version: 3.0.8f3
Logged
Asse
Jr. Member
Thank You
-Given: 0
-Receive: 0
Posts: 70
Re: Wrong scaling of font icons with Atlas.pixelSize != 1
«
Reply #1 on:
January 02, 2014, 06:02:32 AM »
Changing NGUIText line 933 did the job for me so far.
float
v0x
=
x
+
symbol
.
offsetX
*
pixelSize
;
float
v1x
=
v0x
+
symbol
.
width
*
pixelSize
;
float
v1y
=
-
(
y
+
symbol
.
offsetY
*
pixelSize
)
;
float
v0y
=
v1y
-
symbol
.
height
*
pixelSize
;
verts
.
Add
(
new
Vector3
(
v0x, v0y
)
)
;
verts
.
Add
(
new
Vector3
(
v0x, v1y
)
)
;
verts
.
Add
(
new
Vector3
(
v1x, v1y
)
)
;
verts
.
Add
(
new
Vector3
(
v1x, v0y
)
)
;
x
+=
finalSpacingX
+
symbol
.
advance
*
pixelSize
;
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Wrong scaling of font icons with Atlas.pixelSize != 1
«
Reply #2 on:
January 02, 2014, 11:32:53 AM »
Thanks, I will add it to the list.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Wrong scaling of font icons with Atlas.pixelSize != 1