INNER CODE UNIT · Python

inkscape_install_hint

utopia-rise/godot-jvm · logo/export.py:77

def inkscape_install_hint():
    if SYSTEM == 'Windows':
        return 'install it from https://inkscape.org/release/ or with "winget install Inkscape.Inkscape"'
    if SYSTEM == 'Darwin':
        return 'install it from https://inkscape.org/release/ or with "brew install --cask inkscape"'
    return 'install it with your package manager (for example "sudo apt install inkscape") or from https://inkscape.org/release/'

def font_directories():
    home = Path.home()
    directories = []
    custom = os.environ.get('GODOT_JVM_FONT_DIR')
    if custom:
        directories.append(Path(custom))
    if SYSTEM == 'Windows':
        directories.append(Path(os.environ.get('WINDIR', 'C:/Windows')) / 'Fonts')
        directories.append(home / 'AppData' / 'Local' / 'Microsoft' / 'Windows' / 'Fonts')
    elif SYSTEM == 'Darwin':
        directories.append(Path('/Library/Fonts'))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…