MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / asFont

Method asFont

Source/Core/CtrlrPanel/CtrlrPanelResource.cpp:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103const Font CtrlrPanelResource::asFont()
104{
105 MemoryBlock tempData;
106 resourceDataFile.loadFileAsData (tempData);
107 return (Font (Typeface::createSystemTypefaceFor (tempData.getData(), tempData.getSize())));
108}
109
110const XmlElement *CtrlrPanelResource::asXml()
111{

Callers 2

reloadImportedFontsMethod · 0.80
getResourceAsFontMethod · 0.80

Calls 4

FontClass · 0.85
loadFileAsDataMethod · 0.45
getDataMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected