nsis UMUI_HEADERBGIMAGE_BMP fuzzy - nsis

I'd like to set a header image to my installer. This is what i did:
!insertmacro MUI_DEFAULT UMUI_HEADERBGIMAGE_BMP ".\libraries\image.bmp"
The image is 690x59.
It is shown, but it looks fuzzy.
What size is recommended?
Thanks in advance.

According to the documentation the recommended size is 497x59 pixels.

Related

Changing Text Size of a Figure Caption

I'm a beginner starting out with integrating Gitbooks and Github, and I was having issues trying to increase the font size of the caption of an image. It's too small for my liking, and I've been looking at the code in Github and how to edit it such that I can increase the font size of the caption text. (The caption in question is "Chemistry")
<figure><img src=".gitbook/assets/IMG_0948.jpg" alt=""><figcaption><p>Chemistry</p></figcaption></figure>
I've tried rewriting using html syntax for increasing font size, but it didn't quite work out.
<font size="+5">Chemistry.</font>
Are there any suggestions that folks could give? Thanks! Also for more general resources on this sort of integration between Github and Gitbooks would be really appreciated as well!

Display approval sign/check mark (✓) on Kivy Label

I am working on a Kivy(Python) Project and I need to display approval(✓) and cross(X) symbol in different scenario. I can display cross symbol but unable to display other one. Is there any way to do this ? Thanks.
Note: I have tried, writing text:'✓' and text:u'2713' under Label in .kv file but it doesn't work.
The font supplied with Kivy doesn't include the tick mark. You need to use fonts that include those symbols. Tick is available in fonts Arial Unicode MS, Wingdings and Wingdings 2. You can download the font ttf file and have it in the same folder with your script.
Link to download the font
https://www.download-free-fonts.com/details/88978/arial-unicode-ms
Then include the font and use it in the label as follow:
Label:
font_name:'arial-unicode-ms.ttf'
text: "This is the tick ✓"
Bro I was also troubling from same problem from morning but now I figured it out actually so I would like to share it with you.I used below code:
def wrong_btn(self):
self.ids.wrong_button.text = u"⌫" self.ids.wrong_button.font_name=r"C:\Users\95532\AppData\Local\Microsoft\Windows\Fonts\Arial-Unicode-MS.ttf"
I used this to specify the folder in which the font is stored so you can also download the font you want and just specify the path and don't forget use a r i.e raw string mark or else it wont work I wasted my whole day searching for that hope this helps you bro

Spritefont for Greek

I am searching for a spritefont that can support Greek letters. I have downloaded the Sprite Font Generator - v2 - Scirra Forums, but all the fonts I tried won't understand Greek, as seen below:
What am I missing here?
I think you should try changing the character set on the upper left text-box (right above the font selection).
I could't find any charset suggestions online, so I'm posting the one that I used in my latest project:
ΑΆΒΓΔΕΈΖΗΉΘΙΊΪΚΛΜΝΞΟΌΠΡΣΤΥΎΫΦΧΨΩΏαάβγδεέζηήθιίϊΐκλμνξοόπρστυύϋΰφχψωώςƧИ«»’ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,;:?!-_~#"'&()[]|`\/#°+=*$£€<>%
Of course, you may change it according to your needs.

Axes on image in IDL

I have an image displayed in an IDL window using the TV command, and would like to add x and y axes to the image. Seems straightforward, but I can't find a way to do it.
Can anyone help with this?
Thanks
Are you tied to direct graphics, i.e., TV? Easiest way to display with axis is to use IMAGE function:
im = image(arr, axis_style=1)
I would echo Mike's answer - go with the new graphics Image function if possible.
If you absolutely have to use direct graphics, then I would recommend using David Fanning's coyote graphics wrappers:
http://www.idlcoyote.com/idldoc/cg/cgimage.html
It's still a lot more work to do this using direct graphics, but at least with the "cg" commands it's easier.

How to concatenate icons into a single image with ImageMagick?

I want to use CSS sprites on a web site instead of separate image files, for a large collection of small icons that are all the same size. How can I concatenate (tile) them into one big image using ImageMagick?
convert works much better than montage. It arranges images vertically or horizontally and keeps png transparency.
convert *.png -append sprites.png (append vertically)
convert *.png +append sprites.png (append horizontally)
From the page you linked, 'montage' is the tool you want. It'll take a bunch of images and concatenate/tile them into a single output. Here's an example image I've made before using the tool:
(source: davr.org)
You are looking for:
montage -background transparent -geometry +4+4 *.png sprite.gif
I like this script for automatical sprite/css generation.
"Building CSS sprites with Bash & Imagemagick"
article copy in Waybackmashine https://web.archive.org/web/20150529041037/http://jaymz.eu/blog/2010/05/building-css-sprites-with-bash-imagemagick
script copy http://blog.kupriyanov.com/2011/01/solvedbuilding-css-sprites-with-bash.html

Resources