|
|
@ -1912,16 +1912,10 @@ void ImFont::SetFallbackChar(ImWchar c)
|
|
|
|
void ImFont::GrowIndex(int new_size)
|
|
|
|
void ImFont::GrowIndex(int new_size)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
IM_ASSERT(IndexXAdvance.Size == IndexLookup.Size);
|
|
|
|
IM_ASSERT(IndexXAdvance.Size == IndexLookup.Size);
|
|
|
|
int old_size = IndexLookup.Size;
|
|
|
|
if (new_size <= IndexLookup.Size)
|
|
|
|
if (new_size <= old_size)
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
IndexXAdvance.resize(new_size);
|
|
|
|
IndexXAdvance.resize(new_size, -1.0f);
|
|
|
|
IndexLookup.resize(new_size);
|
|
|
|
IndexLookup.resize(new_size, (unsigned short)-1);
|
|
|
|
for (int i = old_size; i < new_size; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
IndexXAdvance[i] = -1.0f;
|
|
|
|
|
|
|
|
IndexLookup[i] = (unsigned short)-1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst)
|
|
|
|
void ImFont::AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst)
|
|
|
|