| 150 | } |
| 151 | |
| 152 | bool 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 | |
| 165 | size_t GlyphIndex::GetPendingNodesCount() |
| 166 | { |
no test coverage detected