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
Related
Hi I'm using Inconsolata for powerline font in linux (link 1). Now I want to had some extra symbols. I've successfully added the awesome font symbols from the Inconsolata patched fonts in link 2 to my own copy of Inconsolata for powerline font (i.e. I can successfully copy glyphs to my font and they appear on the terminal).
However when I try to add icons from other fonts, namely the battery icons from Typicons (see link 3) they simply do not appear in the terminal. I've scaled and changed multiple properties but it's always the same.
I'm doing fc-cache -fv and I've checked that if I manually create a glyph it appears after an fc-cache. I'm completely lost here, I'm sure it must be something simple but I've already lost a lot of hours with this and the glyphs never appear in the terminal no matter what I do :-(
Try adding few glyphs from each to a new font file project. If it is a symbol-only font and you don't care/need to follow Unicode assignments, use codepoints for alphabetical characters and numbers.
Generate your file and check for errors. Fix any issues reported by FontForge.
I've discovered the problem. In two words lbearing and rbearing. They must be the same as the other glyphs. The size is also important. Even with a similar lbearing and rbearing if the size of the glyph is too big it will not appear.
I need to know the name of the font used in the freelancer.com logo? I tried to find out using WhatTheFont but without success.
I really need this font name.
Thanks to everybody.
WhatTheFont has a forum where you can post a graphic containing the font in question and (with luck) get responses from actual people who may be able to identify it.
i really want to know how to create texts in a background using corel draw 4, for example on some currencies and certificates, you may have, "Bank of Ghana, Bank of Ghana", written plenty in a wavy style with small sized fonts in the background or if its a school, you have the name of the school written plenty but small small font size in the background. Any help please??
How to Create Text on Path as per Example
Draw a path
Type Text
Example
Select Both Path and ext
Click Text from Menu and Click Fit Text to Path
Example
Finish
If you find my answer helpful please mark it, So others can take the benefits of it.
You can add any text along the path of an open object like line or a closed object like squre or circle.
Draw any path (cirlce, squre, lines)
Type Text
Type Text
With Pick tool , select a path.
Select Path
Click Text Fit text to path.
Text-> Fit to Path
You can also edit fit text to a path by clicking these icons.
Edit Setting
I am having trouble changing the background color of Dialog from white to any color.
I have tried the following code snippets but to no use.
dialog.getDialogStyle().setBgColor(0xffce78, true);
dialog.getUnselectedStyle().setBgImage(Image.createImage("/main_bg.png"));
dialog.getPressedStyle().setBgImage(Image.createImage("/main_bg.png"));
dialog.getSelectedStyle().setBgImage(Image.createImage("/main_bg.png"));
You need to use the dialog style getDialogStyle().
Regardless your code creates 3 separate yet identical images which is REALLY BAD! You are loading the same image 3 times into memory!
Is you image in the root directory? You should use the full path from the src folder, I mean, if your image is in the "images" package, you should put this path "/images/main_bg.png". If it is in the default package...."main_bg.png"
Is there a quick way to change all text containers so that the anti-alias setting is "Use Device Fonts"?
I am using Flash CS5, and need to convert about 300 animations, each with 20 or more text boxes, so that they use device fonts. This is necessary so that we can more easily display traditional Chinese characters.
I can go through each text box, change the font to _sans and it automatically switches to Use Device Font - then I don't need to embed the font files. So I tried to use the Find and Replace tool to change the font on all text boxes. It worked fine at changing the fonts, but it did not auto-switch the anti-alias. Any help on this would save hours of work.
Thanks.
Hopefully you're not too far into your work on this one, but there's a new development with CS5 that will help you with just this. It's called the .xfl format, and all .fla's are actually this format, but zipped up. Have a read here for more info: http://blog.theflashblog.com/?p=1986
What this means is you can convert your fla to xfl (or just change the suffix to .zip and unzip as the above article suggests), and do a Find&Replace on all text field font values.
Hope that helps!