Page 1 of 1

Font Importer issue in Unreal whereas font is being displayed correctly

Posted: 01 May 2024, 13:19
by jinfox
Hi,
I am currently trying to declare a list of FontFamily Resources that I can reuse in styles for example like so :
<FontFamily x:Key="FontFamily.Helvetica">
	../Fonts/#Helvetica
</FontFamily>
This works both in the Blend solution and in Unreal runtime. However I have an issue when reimporting the xaml file as a uasset, the font importer says the following :
LogNoesisEditor: Error: Failed to import font family Helvetica from /Game/Project/ProjectUI/Fonts/
In Noesis Settings of the project, the font asset is added there properly.

I have tried a bunch of approach, including absolute path like
pack://application:,,,/Project/ProjectUI/Fonts/#Helvetica
(this still works, but due to the difference of root folder, the relative path would be preferable for me).

So the problem here is that it kind of works but it with errors, which is both worrying but also throws lots of flag in CI pipeline.
Is there anything I am doing wrong/ have forgotten/preferred method?

Re: Font Importer issue in Unreal whereas font is being displayed correctly

Posted: 02 May 2024, 11:59
by sfernandez
Hello, can you post here the file/folder structure of the related assets (source directories and content directories)? I will try yo reproduce the problem.
Or if you can attach a minimal project reproducing the error it would be even better.
Thanks!

Re: Font Importer issue in Unreal whereas font is being displayed correctly

Posted: 26 Jun 2024, 15:44
by jinfox
Hi Sergio, sorry for the delay.
I tried but no succeed to reproduce the issue on a minimal project with similar folder structure. There is definitely something strange going on either with the way we are loading the xaml or the way some resource are included in xaml file and some are included in Application resource in Noesis Setting and that maybe the root doesn't match.

I unfortunately wouldn't be able to tell you what was happening, we solved it by having a custom resourceDictionary type for the blend project that kind of hardcode the source for the font path to work both in unreal and the blend project.

I unfortunately was having issue identifying precisely what was the path that was causing issue and where the path I was entering was leading to.

I think we can consider this solved.

Re: Font Importer issue in Unreal whereas font is being displayed correctly

Posted: 04 Jul 2024, 13:53
by sfernandez
Ok, I'll mark this as closed, but in case you find a similar problem in the future please open a ticket so we can try to find the origin and fix it.