This commit is contained in:
2020-07-28 16:37:01 +08:00
parent 67a595066e
commit 5020f80060
11 changed files with 364 additions and 13 deletions

View File

@@ -114,15 +114,15 @@ namespace hgl
return s->GetCharBitmap(ch);
}
int FontSourceMulti::GetCharAdvWidth(const u32char &ch)
const bool FontSourceMulti::GetCharMetrics(CharMetricsInfo &cmi,const u32char &ch)
{
FontSource *s=GetFontSource(ch);
if(!s)
return(0);
return s->GetCharAdvWidth(ch);
return s->GetCharMetrics(cmi,ch);
}
}//namespace graph
}//namespace hgl