It is currently March 29th, 2024, 1:44 pm

Solved: Random FontFace from text file or @Resources folder

Get help with installing and using Rainmeter.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Random FontFace from text file or @Resources folder

Post by jsmorley »

Click to animate:
GIF.gif
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Random FontFace from text file or @Resources folder

Post by jsmorley »

Do understand that the "random" in the Quote plugin is random like throwing a pair of dice, not random like drawing a card from the stack and discarding it. The fewer "things" there are to choose from, the more likely that the same choice can and will be made twice in a row. Much like flipping a coin, over time it will be random, but nothing says you can't flip heads twice in a row.
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Re: Random FontFace from text file or @Resources folder

Post by the_metal_lord »

FontFace.txt is ANSI, still only shows 2 fonts.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Random FontFace from text file or @Resources folder

Post by jsmorley »

RandomFont_1.0.rmskin
What does this do?
You do not have the required permissions to view the files attached to this post.
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Re: Random FontFace from text file or @Resources folder

Post by the_metal_lord »

jsmorley wrote:RandomFont_1.0.rmskin

What does this do?
This still does the same, I've attached mine
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Random FontFace from text file or @Resources folder

Post by balala »

the_metal_lord wrote:- I tested this, still the same thing happening, only switching between the last font in the list (in this case Comic Sans) and default Rainmeter font. Other fonts are still not loading.
Just if you want: https://forum.rainmeter.net/viewtopic.php?p=146773#p146773
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Re: Random FontFace from text file or @Resources folder

Post by the_metal_lord »

Quotes - Test.zip
- here is the one I'm working on, all the files are here.
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Random FontFace from text file or @Resources folder

Post by jsmorley »

I don't know what to tell you. I loaded your skin and made the following two changes:

Removed the empty StringStyle= option which was raising an error
Changed UpdateDivider to 2 so it happens fast for my testing.

And it works just fine. It randomly changes between all the fonts you have in that FontFace.txt file.
the_metal_lord
Posts: 27
Joined: April 3rd, 2018, 12:50 pm

Re: Random FontFace from text file or @Resources folder

Post by the_metal_lord »

I removed the empty StringStyle= ... still out of 9 fonts, only 1 shows and the default font.
Is there any way to make a Random measure to make it work?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Random FontFace from text file or @Resources folder

Post by balala »

jsmorley wrote:And it works just fine. It randomly changes between all the fonts you have in that FontFace.txt file.
Same for me. It works well.
Probably the problem is with the UpdateDivider=300 option of the [MeasureFontFace] measure. Due to this option, the measure updates once per 5 minutes, so the font is changed rarely enough to be hard to be seen.
the_metal_lord, please remove the above option and let us know if the font is changed each second.