AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Pixel clock rainmeter skin1/30/2024 Sliding a "content" meter in and out of a "container" meter. While the example code here is for two simple skins that demonstrate using Container, you can download a suite of skins demonstrating several ways to use the funtionality. Any meter type can be a container and any meter type can be content.Meters that are not content are relative to the immediately preceding meter that is not content.Subsequent content meters in a container are relative to each other.The first content meter in a container is automatically relative to the top left of the container.Any transparency of both the container and the content is cumulative.The container meter itself is not drawn, just the content. Content is only drawn on solid pixels of the container.Content outside the container is truncated, and in effect doesn't exist. Content is only drawn within the rectangular W and H boundaries of the container meter.Name of a meter, of any type, to be used as a container for the content of this meterĮxample: Container=SomeOtherMeter Usage Notes Visibility Think masking an image into a String meter, or an image into a Shape meter. So only the part of the content that is masked into a solid pixel in the container will be drawn. The content will be "masked" into any solid pixels in the container meter.Think sliding content, a menu or launcher for instance, into view without needing to start outside the entire skin. Only the part of the content that is "inside" the container will be drawn. It will be positioned relative to the container, and will be visibly constrained by it. A meter that has a Container option will in effect be put "inside" the container meter.When you run it, and select a folder containing your fonts, a lot of useful information is available.Define a meter to be used as a "container" for the "content" of this meter. It is a portable application that you can just run from any folder. Get the dp4 Font Viewer free utility from. This can also provide copyright and license information. This can be useful when specifying the family name in FontFace, as well as when using Typography (See the "Glyph substitution" tab) options. However, there is a really nice tool that can give you a lot more information about your fonts. Rainmeter will figure out the actual family name when the font is loaded, and will use the correct font file when attributes like weight or italic are used. If you use those full family / sub-family names, that is almost always going to be fine. Generally these are all fonts that share the same font family name, but the font viewer program in Windows may show the font name including sub-family names, like "Fira Sans Bold" or "Roboto Italic". otf files, with each being a different weight or style. Some of the features that can be set are Italic, Oblique, Underline, StrikeThrough and Shadow, as well as adding gradients to the text. In addition, there are other attributes that can be set using the InlineSetting option on a String meter. FontWeight : A number between 0-999 specifying the weight of the font.ĭetails on this option can be found at FontWeight.FontColor : A rrr,ggg,bbb,aaa (rgb) or rrggbbaa (hex) color code.FontSize : The size of the font in points.Īdditional attributes for the font can then be specified with other options available on the String meter. ttf/.otf file and at the very top left in the Windows font viewer using the Font Name there. The family name can be found by double clicking the font. The font is identified by specifying the family name of the font (e.g. Specifying the font is done with the FontFace option in a String meter. Rainmeter will automatically load any fonts found in that folder, and they will be available to use as if they were installed in Windows. Using Fontsģrd-party font files can be used by creating a folder in the root level folder of the skin, and putting the font. It's really just a small waste of memory to install fonts that you are only using in Rainmeter. 3rd-party fonts, which you might obtain from one of those sites listed above, can easily be used in and distributed with your skins, without any need for you or your users to install them in Windows. No need to install 3rd-party fonts in Windowsįonts installed in Windows (they will be in the Windows\Fonts folder) will automatically be available for use in Rainmeter. If a font is commercial, or licensed for personal use only, it may be technically illegal for you to distribute them with your skins. A few popular places are:ĭo pay attention to the license for fonts you download and use. There are lots of places where you can download free fonts, licensed to distribute with your skins. Fonts are used in String meters with the FontFace option.
0 Comments
Read More
Leave a Reply. |