Add new smooth Hobo font
This commit is contained in:
parent
722488a9ab
commit
dcc15a8103
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@ build/
|
|||||||
dist/
|
dist/
|
||||||
enc_temp_folder/
|
enc_temp_folder/
|
||||||
.cache/
|
.cache/
|
||||||
attic/
|
attic/chucklefish/
|
||||||
tiled/
|
tiled/
|
||||||
assets/user/
|
assets/user/
|
||||||
assets/devel/
|
assets/devel/
|
||||||
|
BIN
assets/opensb/font/pixelhobo.ttf
Normal file
BIN
assets/opensb/font/pixelhobo.ttf
Normal file
Binary file not shown.
BIN
assets/opensb/hobo.ttf
Normal file
BIN
assets/opensb/hobo.ttf
Normal file
Binary file not shown.
22359
attic/HoboSabien.sfd
Normal file
22359
attic/HoboSabien.sfd
Normal file
File diff suppressed because it is too large
Load Diff
@ -79,7 +79,7 @@ unsigned Font::width(String::Char c) {
|
|||||||
return *width;
|
return *width;
|
||||||
} else {
|
} else {
|
||||||
FT_Load_Char(m_fontImpl->face, c, FontLoadFlags);
|
FT_Load_Char(m_fontImpl->face, c, FontLoadFlags);
|
||||||
unsigned newWidth = (m_fontImpl->face->glyph->advance.x + 32) / 64;
|
unsigned newWidth = (m_fontImpl->face->glyph->linearHoriAdvance + 32768) / 65536;
|
||||||
m_widthCache.insert({c, m_pixelSize}, newWidth);
|
m_widthCache.insert({c, m_pixelSize}, newWidth);
|
||||||
return newWidth;
|
return newWidth;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user