MCPcopy Create free account
hub / github.com/axmolengine/axmol / generate

Method generate

extensions/SDFGen/src/SDFGen/SDFGen.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169protected:
170 void generate(FontAtlasGenParams* params)
171 {
172 _params = params;
173
174 // match with runtime
175 _atlasName = fmt::format("df {} {}", params->faceSize, params->sourceFont);
176
177 std::u32string utf32;
178 if (StringUtils::UTF8ToUTF32(_fontFreeType->getGlyphCollection(), utf32))
179 this->prepareLetterDefinitions(utf32);
180
181 _pageDatas.emplace_back(_currentPageData, _currentPageData + _currentPageDataSize);
182 }
183
184 void addNewPage() override
185 {

Callers 1

newFontAtlasMethod · 0.45

Calls 5

UTF8ToUTF32Function · 0.85
getGlyphCollectionMethod · 0.80
formatFunction · 0.50
emplace_backMethod · 0.45

Tested by

no test coverage detected