Commit f9829df2 authored by mercury233's avatar mercury233

fix name width

parent 3b3738ad
...@@ -706,9 +706,9 @@ namespace ImgGen ...@@ -706,9 +706,9 @@ namespace ImgGen
string str3 = text.name.Replace('\x00b7', '・'); string str3 = text.name.Replace('\x00b7', '・');
float width = graphics.MeasureString(str3, nameFont).Width; float width = graphics.MeasureString(str3, nameFont).Width;
float sx = 1f; float sx = 1f;
if (width > 125f) if (width > 130f)
{ {
sx *= 125f / width; sx *= 130f / width;
} }
if ((data.type & 0x800000) > 0) if ((data.type & 0x800000) > 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment