I guess it would be the best to add it to the Settings-Rainmeter Section, for example:
Code: Select all
[Rainmeter]
FontPath=#@#Assets\Fonts\
CursorPath=#@#Assets\Cursors\
It would allow to remove clutter from the base resources folder.
Code: Select all
[Rainmeter]
FontPath=#@#Assets\Fonts\
CursorPath=#@#Assets\Cursors\
Is this not enough?Nickson wrote: ↑January 14th, 2023, 5:08 pm I would love to have a way to specify custom folders for fonts/cursors.
I guess it would be the best to add it to the Settings-Rainmeter Section, for example:
I dont know if its possible to use #@# there, but absolute paths would be great too.Code: Select all
[Rainmeter] FontPath=#@#Assets\Fonts\ CursorPath=#@#Assets\Cursors\
It would allow to remove clutter from the base resources folder.
Why? Doesn't really make sense, at least I don't see a case in which the default Fonts and Cursors folders are not enough.
TrueType (.ttf) or OpenType (.otf) fonts in the @Resources\Fonts folder are automatically loaded and can be used with the FontFace option in string meters. ![]() |
Code: Select all
LocalFont=#@#Assets\Fonts\Atami-Display-Regular.otf
LocalFont2=#@#Assets\Fonts\Roboto-Regular.ttf
LocalFont3=#@#Assets\Fonts\MaterialIcons-Regular.ttf
;etc.
FontFace=Roboto Regular
Since the @Resources\Fonts folder is contained in the config, when you create a skin installer, this folder (along with its content) is included into it, without having you to worry not to forget it. The fonts contained into this folder can be freely used in the skin, without having to install them.
Believe me, I did worked on quite large Rainmeter projects. The folder structure of a Rainmeter config, beside the location of Fonts folder, is bound, you can't modify it freely.
Code: Select all
[Rainmeter]
LocalFontPath=Assets\Fonts\
LocalCursorPath=Assets\Cursors\
Definitely a dev is needed here, to tell his opinion. I can't help more on this question, since I'm not a dev.
If the fonts are added to the default location (so into the Fonts folder), you don't have to define each font manually (to be honest I don't really follow what you mean by defining them manually), you have to use their name in the FontFace option (same for cursors). And if in a skin of the config you1re not using one of the included fonts, it is not loaded into that skin (however I'm not entirely sure here, I might be wrong at this point).Nickson wrote: ↑January 17th, 2023, 7:47 pm
- Overrides the default path, but would keep the base at @Resources so you cant put it anywhere.
- You dont have to bother defining each font/cursor manually, like with LocalFont.
- Fonts arent loaded into skins where they arent needed, such as images or visualizers