User avatar
jinfox
Topic Author
Posts: 69
Joined: 06 Apr 2019, 00:11

Font Importer issue in Unreal whereas font is being displayed correctly

01 May 2024, 13:19

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?
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

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

02 May 2024, 11:59

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!
 
User avatar
jinfox
Topic Author
Posts: 69
Joined: 06 Apr 2019, 00:11

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

26 Jun 2024, 15:44

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.
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

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

04 Jul 2024, 13:53

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.

Who is online

Users browsing this forum: Bing [Bot] and 1 guest