Skip to content
Snippets Groups Projects
Commit d760fc54 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Add functions to get font library version

parent 8b0185bb
No related branches found
No related tags found
No related merge requests found
...@@ -657,6 +657,20 @@ U8 LLFontFreetype::getStyle() const ...@@ -657,6 +657,20 @@ U8 LLFontFreetype::getStyle() const
return mStyle; return mStyle;
} }
std::string LLFontFreetype::getVersionString()
{
if (gFTLibrary != nullptr)
{
int major, minor, patch;
FT_Library_Version(gFTLibrary, &major, &minor, &patch);
return std::string(llformat("FreeType %i.%i.%i", major, minor, patch));
}
else
{
return std::string();
}
}
void LLFontFreetype::setSubImageLuminanceAlpha(U32 x, U32 y, U32 bitmap_num, U32 width, U32 height, U8 *data, S32 stride) const void LLFontFreetype::setSubImageLuminanceAlpha(U32 x, U32 y, U32 bitmap_num, U32 width, U32 height, U8 *data, S32 stride) const
{ {
LLImageRaw *image_raw = mFontBitmapCachep->getImageRaw(bitmap_num); LLImageRaw *image_raw = mFontBitmapCachep->getImageRaw(bitmap_num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment