[bug] Engine doesn't reimport offline fonts (code)

I tried to reimport “offline fonts”, but the feature seemed broken for a reason. So I checked the code.

I believe there is an error located in this file:
https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Developer/AssetTools/Private/AssetTypeActions/AssetTypeActions_Font.cpp

On line 64, there is a test to determine if the font is an “offline font” in order to be reimported. However the test does the exact opposite and tests if it is NOT offline; so it won’t reimport.

// Skip fonts that aren't using an offline cache, as they can't be reimported
if (Object->FontCacheType != EFontCacheType::Offline)
{
    // Fonts fail to reimport if they ask for a new file if missing
    FReimportManager::Instance()->Reimport(Object, /*bAskForNewFileIfMissing=*/false);
}

Regards.

Good spot!

Fixed by https://github.com/EpicGames/UnrealEngine/commit/e3c4df227b43862b9b41f4a837111740bccc7af6

Thanks,
Jamie.

Getting this bug with 4.18.1 again. Please someone else check.