Skip to content

Commit

Permalink
Update FontDataImport.csx
Browse files Browse the repository at this point in the history
  • Loading branch information
Grossley authored Feb 15, 2021
1 parent 006962b commit 6d3bcc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UndertaleModTool/ExperimentalScripts/FontDataImport.csx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ public class Packer
string atlasName = String.Format(prefix + "{0:000}" + ".png", atlasCount);
//1: Save images
Image img = CreateAtlasImage(atlas);
img.Save(atlasName, System.Drawing.Imaging.ImageFormat.Png);
//DPI fix start
Bitmap ResolutionFix = new Bitmap(img);
ResolutionFix.SetResolution(96.0F, 96.0F);
Image img2 = ResolutionFix;
//DPI fix end
img2.Save(atlasName, System.Drawing.Imaging.ImageFormat.Png);
//2: save description in file
foreach (Node n in atlas.Nodes)
{
Expand Down

0 comments on commit 6d3bcc3

Please sign in to comment.