Skip to content

Commit

Permalink
Tidy up font fields
Browse files Browse the repository at this point in the history
  • Loading branch information
BoilingTeapot committed Sep 12, 2024
1 parent dd6bf26 commit 6b668f5
Show file tree
Hide file tree
Showing 22 changed files with 114 additions and 102 deletions.
4 changes: 2 additions & 2 deletions profiles/cc/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 125,
Widths = "games/cc/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/cc/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/cc/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 117,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x18, 0x0D, 0x18, 0x17, 0x1A, 0x16, 0x17, 0x17, 0x18, 0x17, 0x1C,
0x19, 0x1A, 0x1A, 0x16, 0x15, 0x1A, 0x1A, 0x08, 0x13, 0x1A, 0x17, 0x1E,
0x1A, 0x1C, 0x18, 0x1C, 0x1A, 0x18, 0x1C, 0x1A, 0x1C, 0x20, 0x1C, 0x1A,
Expand Down Expand Up @@ -46,9 +46,9 @@ local westernWidths = {
};

for i = 0, (64 * 117) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/cclcc/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 125,
Widths = "games/cc/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/cc/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/cclcc/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 117,
Widths = {},
DesignColWidth = 48,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 48,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x18, 0x0D, 0x18, 0x17, 0x1A, 0x16, 0x17, 0x17, 0x18, 0x17, 0x1C,
0x19, 0x1A, 0x1A, 0x16, 0x15, 0x1A, 0x1A, 0x08, 0x13, 0x1A, 0x17, 0x1E,
0x1A, 0x1C, 0x18, 0x1C, 0x1A, 0x18, 0x1C, 0x1A, 0x1C, 0x20, 0x1C, 0x1A,
Expand Down Expand Up @@ -46,9 +46,9 @@ local westernWidths = {
};

for i = 0, (64 * 117) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i] * 1.5;
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i] * 1.5;
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/chlcc/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 37,
Widths = "games/chlcc/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/chlcc/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/chlcc/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 37,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
Expand All @@ -38,9 +38,9 @@ local westernWidths = {
};

for i = 0, (64 * 37) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/chn/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 50,
Widths = "games/rne/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/rne/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/chn/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 117,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x18, 0x0D, 0x18, 0x17, 0x1A, 0x16, 0x17, 0x17, 0x18, 0x17, 0x1C,
0x19, 0x1A, 0x1A, 0x16, 0x15, 0x1A, 0x1A, 0x08, 0x13, 0x1A, 0x17, 0x1E,
0x1A, 0x1C, 0x18, 0x1C, 0x1A, 0x18, 0x1C, 0x1A, 0x1C, 0x20, 0x1C, 0x1A,
Expand Down Expand Up @@ -46,9 +46,9 @@ local westernWidths = {
};

for i = 0, (64 * 117) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
12 changes: 6 additions & 6 deletions profiles/darling/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 43,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x16, 0x0E, 0x14, 0x15, 0x16, 0x16, 0x16, 0x15, 0x16, 0x16, 0x18,
0x16, 0x17, 0x17, 0x15, 0x14, 0x18, 0x16, 0x08, 0x0E, 0x17, 0x13, 0x1A,
0x16, 0x19, 0x15, 0x19, 0x16, 0x15, 0x15, 0x16, 0x17, 0x1E, 0x16, 0x15,
Expand Down Expand Up @@ -48,9 +48,9 @@ local westernWidths = {
};

for i = 0, (64 * 43) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/dash/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 50,
Widths = "games/rne/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/rne/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/dash/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 50,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x16, 0x0E, 0x14, 0x15, 0x16, 0x16, 0x16, 0x15, 0x16, 0x16, 0x18,
0x16, 0x17, 0x17, 0x15, 0x14, 0x18, 0x16, 0x08, 0x0E, 0x17, 0x13, 0x1A,
0x16, 0x19, 0x15, 0x19, 0x16, 0x15, 0x15, 0x16, 0x17, 0x1E, 0x16, 0x15,
Expand Down Expand Up @@ -48,9 +48,9 @@ local westernWidths = {
};

for i = 0, (64 * 50) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
12 changes: 6 additions & 6 deletions profiles/mo6tw/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 39,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
Expand Down Expand Up @@ -48,9 +48,9 @@ local westernWidths = {
};

for i = 0, (64 * 39) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
12 changes: 6 additions & 6 deletions profiles/mo7/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 43,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
Expand Down Expand Up @@ -48,9 +48,9 @@ local westernWidths = {
};

for i = 0, (64 * 43) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/mo8/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 50,
Widths = "games/rne/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/rne/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/mo8/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 116,
Widths = {},
DesignColWidth = 48,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 48,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
Expand Down Expand Up @@ -39,9 +39,9 @@ local westernWidths = {
};

for i = 0, (64 * 116) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i] * 1.5;
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i] * 1.5;
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
4 changes: 2 additions & 2 deletions profiles/rne/font-lb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ root.Fonts = {
OutlineSheet = "FontLBOutline",
Columns = 64,
Rows = 50,
Widths = "games/rne/font-lb/widths.bin",
DesignColWidth = 48,
AdvanceWidths = "games/rne/font-lb/widths.bin",
AdvanceWidthsEmWidth = 48,
OutlineOffset = { X = -4, Y = -4 },
LineSpacing = 14,
}
Expand Down
12 changes: 6 additions & 6 deletions profiles/rne/font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ root.Fonts = {
Sheet = "Font",
Columns = 64,
Rows = 50,
Widths = {},
DesignColWidth = 32,
AdvanceWidths = {},
AdvanceWidthsEmWidth = 32,
LineSpacing = 22,
}
};

local westernWidths = {
local westernAdvanceWidths = {
[0]=0x20, 0x16, 0x0E, 0x14, 0x15, 0x16, 0x16, 0x16, 0x15, 0x16, 0x16, 0x18,
0x16, 0x17, 0x17, 0x15, 0x14, 0x18, 0x16, 0x08, 0x0E, 0x17, 0x13, 0x1A,
0x16, 0x19, 0x15, 0x19, 0x16, 0x15, 0x15, 0x16, 0x17, 0x1E, 0x16, 0x15,
Expand Down Expand Up @@ -48,9 +48,9 @@ local westernWidths = {
};

for i = 0, (64 * 50) - 1 do
if i <= #westernWidths then
root.Fonts["Default"].Widths[i] = westernWidths[i];
if i <= #westernAdvanceWidths then
root.Fonts["Default"].AdvanceWidths[i] = westernAdvanceWidths[i];
else
root.Fonts["Default"].Widths[i] = root.Fonts["Default"].DesignColWidth;
root.Fonts["Default"].AdvanceWidths[i] = root.Fonts["Default"].AdvanceWidthsEmWidth;
end
end
Loading

0 comments on commit 6b668f5

Please sign in to comment.