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

**URL:** <https://forums.unrealengine.com/t/bug-engine-doesnt-reimport-offline-fonts-code/305211>\
**Category:** C++\
**Tags:** fonts, unreal-engine, bug-report, UE4, CPP, question\
**Created:** [January 28, 2015, 1:19am UTC](https://forums.unrealengine.com/t/bug-engine-doesnt-reimport-offline-fonts-code/305211 "2015-01-28T01:19:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrHobo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrHobo](https://forums.unrealengine.com/u/DrHobo)\
**Post date:** [January 28, 2015, 1:19am UTC](https://forums.unrealengine.com/t/bug-engine-doesnt-reimport-offline-fonts-code/305211/1 "2015-01-28T01:19:18Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [January 28, 2015, 11:48am UTC](https://forums.unrealengine.com/t/bug-engine-doesnt-reimport-offline-fonts-code/305211/2 "2015-01-28T11:48:53Z")

</div>

Good spot!

Fixed by [https://github.com/EpicGames/UnrealEngine/commit/e3c4df227b43862b9b41f4a837111740bccc7af6](https://github.com/EpicGames/UnrealEngine/commit/e3c4df227b43862b9b41f4a837111740bccc7af6)

Thanks,  
Jamie.

---

<div class="post-metadata">

**Author:** ![VKleinMP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VKleinMP](https://forums.unrealengine.com/u/VKleinMP)\
**Post date:** [December 11, 2017, 2:10pm UTC](https://forums.unrealengine.com/t/bug-engine-doesnt-reimport-offline-fonts-code/305211/3 "2017-12-11T14:10:17Z")

</div>

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