TODO feature: Import from a text array; Little Export fix
This commit is contained in:
@@ -207,7 +207,7 @@ namespace McBitFont {
|
||||
output +=
|
||||
" // Meta header\n" +
|
||||
" " + (packed ? "1" : "0") + ", // Is it a packed font?\n" +
|
||||
" " + (mono ? mainForm.frames.First().width.ToString() : "0") + ", // Font width in pixels; 0 - variable width\n" +
|
||||
" " + (mono || mainForm.frames.Count == 1 ? mainForm.frames.First().width.ToString() : "0") + ", // Font width in pixels; 0 - variable width\n" +
|
||||
" " + mainForm.frames.First().height.ToString() + ", // Font height in pixels\n" +
|
||||
" 0, // Font space (between symbols) in pixels\n" +
|
||||
" " + mainForm.frames.First().code.ToString() + ", // First character code\n" +
|
||||
@@ -353,7 +353,7 @@ namespace McBitFont {
|
||||
output += cbracket + ((i + idir == imax) && f.Equals(flast) ? "" : ",") + "\n";
|
||||
}
|
||||
}
|
||||
if (packed && (f.width * f.height / 8) % bits > 0) {
|
||||
if (packed && (f.width * f.height) % bits > 0) {
|
||||
// post leftovers in last number
|
||||
|
||||
// should we post a prefix to the number?
|
||||
|
Reference in New Issue
Block a user