Unit test suite for typography and scaling management via FontManager.
More...
Unit test suite for typography and scaling management via FontManager.
◆ givenDefaultFont_whenInitializeLuciole_thenDefaultFontIsReplaced()
| void fr.softsf.canscan.util.FontManagerUTest.givenDefaultFont_whenInitializeLuciole_thenDefaultFontIsReplaced |
( |
| ) |
|
|
package |
Verifies that the manager initialization correctly replaces the system font with Luciole.
◆ givenLargeFont_whenGetScaledDimension_thenReturnLargerValue()
| void fr.softsf.canscan.util.FontManagerUTest.givenLargeFont_whenGetScaledDimension_thenReturnLargerValue |
( |
| ) |
|
|
package |
Verifies scaling with a large font to simulate HiDPI/Windows Scaling.
◆ givenNullFont_whenGetScaledDimension_thenUseFallbackMetrics()
| void fr.softsf.canscan.util.FontManagerUTest.givenNullFont_whenGetScaledDimension_thenUseFallbackMetrics |
( |
| ) |
|
|
package |
Verifies that the calculation handles the fallback font if UIManager is cleared.
◆ givenStandardFont_whenGetScaledDimension_thenReturnSameValue()
| void fr.softsf.canscan.util.FontManagerUTest.givenStandardFont_whenGetScaledDimension_thenReturnSameValue |
( |
| ) |
|
|
package |
Verifies that getScaledDimension returns the base value when font height matches reference.
◆ setUp()
| void fr.softsf.canscan.util.FontManagerUTest.setUp |
( |
| ) |
|
|
package |
Resets the UI default font before each test to ensure a clean state.
The documentation for this class was generated from the following file: