[Bitmap font] Assume outline size is 1 if it's not set, but channel for outline is defined.

This commit is contained in:
bruvzg 2023-02-26 18:32:19 +02:00
parent 1c1524a651
commit 67762ec4a6
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38

View file

@ -1458,6 +1458,9 @@ Error FontFile::load_bitmap_font(const String &p_path) {
}
if (ch[i] == 1 && first_ol_ch == -1) {
first_ol_ch = i;
if (outline == 0) {
outline = 1;
}
}
if (ch[i] == 2 && first_cm_ch == -1) {
first_cm_ch = i;
@ -1747,6 +1750,9 @@ Error FontFile::load_bitmap_font(const String &p_path) {
}
if (ch[i] == 1 && first_ol_ch == -1) {
first_ol_ch = i;
if (outline == 0) {
outline = 1;
}
}
if (ch[i] == 2 && first_cm_ch == -1) {
first_cm_ch = i;