MCPcopy Create free account
hub / github.com/comaps/comaps / CanBeGlyphPacked

Method CanBeGlyphPacked

libs/drape/font_texture.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool GlyphIndex::CanBeGlyphPacked(uint32_t glyphsCount) const
153{
154 if (glyphsCount == 0)
155 return true;
156
157 if (m_packer.IsFull())
158 return false;
159
160 float constexpr kGlyphScalar = 1.5f;
161 auto constexpr baseSizePixels = static_cast<uint32_t>(kBaseFontSizePixels * kGlyphScalar);
162 return m_packer.CanBePacked(glyphsCount, baseSizePixels, baseSizePixels);
163}
164
165size_t GlyphIndex::GetPendingNodesCount()
166{

Callers 1

HasEnoughSpaceMethod · 0.80

Calls 2

CanBePackedMethod · 0.80
IsFullMethod · 0.45

Tested by

no test coverage detected