MCPcopy Create free account
hub / github.com/CloudCompare/CloudCompare / FontSizeModifier

Function FontSizeModifier

libs/qCC_glWindow/src/ccGLWindowInterface.cpp:2760–2768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2758}
2759
2760int FontSizeModifier(int fontSize, float zoomFactor)
2761{
2762 int scaledFontSize = static_cast<int>(std::floor(fontSize * zoomFactor));
2763 if (zoomFactor >= 2.0f)
2764 scaledFontSize -= static_cast<int>(zoomFactor);
2765 if (scaledFontSize < 1)
2766 scaledFontSize = 1;
2767 return scaledFontSize;
2768}
2769
2770int ccGLWindowInterface::getFontPointSize() const
2771{

Callers 2

getFontPointSizeMethod · 0.85
getLabelFontPointSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected