1
Graphics / load font error -
« on: February 03, 2024, 06:19:54 pm »
Hello,
I am having troubles loading a font to display text in SFML.
I tried to load the fonts from my System/Library/ folder of my mac m1 as well as fonts that have been copied into the workspace folder. Including the fonts seems to work in both cases but when i hit the build button i get loads of error messages telling me:
warning: null character ignored [-Wnull-character]
error: source file is not valid UTF-8
I am working with visual studio code. My project is based on the FSML Cmake example project.
I guess this muss be some stupid beginner mistake but i just cant find a solution.
Can anybody please point me in the right direction?
I am having troubles loading a font to display text in SFML.
I tried to load the fonts from my System/Library/ folder of my mac m1 as well as fonts that have been copied into the workspace folder. Including the fonts seems to work in both cases but when i hit the build button i get loads of error messages telling me:
warning: null character ignored [-Wnull-character]
error: source file is not valid UTF-8
I am working with visual studio code. My project is based on the FSML Cmake example project.
I guess this muss be some stupid beginner mistake but i just cant find a solution.
Can anybody please point me in the right direction?