Skip to content

UNABLE_TO_MASK_PATH exception thrown when constructing CanvasFontSet #1025

@SuGar0218

Description

@SuGar0218
Image Image

When the path to the font file is too long, a COMException with message "UNABLE_TO_MASK_PATH" will be thrown. I have enabled "LongPathsEnabled" in regedit and declared "longPathAware" in app.manifest.

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
        <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
        <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
    </windowsSettings>
</application>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions