Class WinUtils

  • All Implemented Interfaces:

    
    public final class WinUtils
    
                        

    Utility class for Windows-specific operations.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      WinUtils()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • WinUtils

        WinUtils()
    • Method Detail

      • CHCP_TO_UTF8

         final static Unit CHCP_TO_UTF8()

        Sets the console code page to UTF-8.

      • SET_CASCADIA_CODE_FONT

         final static Boolean SET_CASCADIA_CODE_FONT(Short fontSize)

        Sets the console font to Cascadia Code with UTF-8 support. Automatically switches to UTF-8 code page for optimal Unicode display. Preserves the original console font size unless overridden.

        Parameters:
        fontSize - Optional font size (if null, preserves current size)
        Returns:

        true if font was successfully changed, false otherwise

      • SETUP_OPTIMAL_CONSOLE

         final static Boolean SETUP_OPTIMAL_CONSOLE()

        Sets up optimal console for Unicode display. Tries Cascadia Code first, then falls back to other suitable fonts. Preserves the original console font size.

        Returns:

        true if any suitable font was successfully applied