Comments (5)
You'll probably want to remove Resources/
from the font asset name, as that is implied.
-AddFont(Resources, @"Resources/Fonts/210omnigulim010/210omnigulim010");
+AddFont(Resources, @"Fonts/210omnigulim010/210omnigulim010");
See how osu! does it:
https://github.com/ppy/osu/blob/e0e790fa9412368ff7b414791348476f05e28f2f/osu.Game/OsuGameBase.cs#L448
from osu-framework.
this error happend because dll resources has different name or path to real path. please add this solution to wiki
- find.Resources/bin/.Game.dll
- open that dll file using assembly viewer
- check the real font file path inside the dll, and correct code.
@peppy
from osu-framework.
@kenter7317 i'm confused. did the removal of the Resources
prefix fix it? or did you do something else entirely?
i'm not sure why the wiki has the prefixes to be fair, neither framework or game has them.
from osu-framework.
I remove that prefix resources
and corrected path. that prefix may be implied
AddFont(*Resources*, path)
but still the Framework couldn't find my font, then I try some other steps, finally I find that Framework find path's Resources in the dll file. then check assembly. and fix them, in my case. the right path is Fonts/210omnigulim/_210omnigulim
I'll commit this changes and comment my code, I'm sorry about availabilities of misunderstanding your comment, cuz I'm foreigners
from osu-framework.
Okay sure that checks out, but that is because you've accidentally hit a stupid implementation detail of embedded resources. If the name of an embedded resource starts with a digit it will apparently get automatically an underscore prepended to it. See https://stackoverflow.com/questions/14705211/how-is-net-renaming-my-embedded-resources.
I'll remove the error from the wiki and also add a note to not start the name of the resource with a digit I guess.
from osu-framework.
Related Issues (20)
- Input thread blocking causes mouse handling stutters on windows HOT 5
- Game window sometimes does not respond to window size changes
- Periodic AccessViolation somewhere in BASS HOT 1
- Allow custom clear color for the window background HOT 5
- Crash on startup with Wayland fractional scaling
- Implement `CADisplayLink` on macOS for potentially better frame timing HOT 1
- Masking sub-tree creation can be avoided with relative ease HOT 3
- Consider using `WS_EX_NOREDIRECTIONBITMAP` HOT 1
- Flickering on fullscreen Vulkan (AMD gpu, Windows)
- SDL3: Segfault on wayland backend HOT 5
- System.AccessViolationException when reloading `TestSceneTextureUploadPerformance` on vulkan HOT 1
- Platforms other than Windows crash when last windowed mode is borderless in latest master HOT 1
- Border smoothness is lost on Android devices HOT 1
- Vulkan renderer causes the game to crash after getting to results screen HOT 2
- Fixing windows ink tablet events on SDL3 HOT 1
- Hard crash on Android due to conflicting linux and android SDL3 libs HOT 1
- README file list outdated .NET SDK version HOT 1
- Multiline text box? HOT 1
- Vscode SampleGame prelaunch tasks typoed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osu-framework.