MCPcopy Create free account
hub / github.com/aiekick/ImGuiFontStudio / LoadFontFiles

Method LoadFontFiles

src/Helper/FontHelper.cpp:664–670  ·  view source on GitHub ↗

based on https://github.com/rillig/sfntly/blob/master/cpp/src/sample/subtly/utils.cc*/

Source from the content-addressed store, hash-verified

662
663/* based on https://github.com/rillig/sfntly/blob/master/cpp/src/sample/subtly/utils.cc*/
664void FontHelper::LoadFontFiles(const char* font_path, sfntly::FontFactory* factory, sfntly::FontArray* fonts)
665{
666 sfntly::FileInputStream input_stream;
667 input_stream.Open(font_path);
668 factory->LoadFonts(&input_stream, fonts);
669 input_stream.Close();
670}
671
672/* based on https://github.com/rillig/sfntly/blob/master/cpp/src/sample/subtly/utils.cc*/
673bool FontHelper::SerializeFont(const char* font_path, sfntly::Font* font)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected