I have an issue, I tried to load a custom font in wp7 silverlight app for my buttons, and it worked nicely. This font supports greek language in word, photoshop etc. But in expression blend or in visual studio when i change the content of the button in greek word then the button fontfamily loads in default font. Why is this happening?
It sounds as though you aren't loading the font correctly.
What are you actually doing. (Show the code. Don't just describe it.)
Related
I have a WPF project. when I run it, the icon appers in the Taskbar and in the app. But in the Taskmanger windows app it's blank, how can I change that?
I have the "icon" property set on the window. And also the projects properties has the icon as its icon.
And also the icon on "programs and features" looks strange
Looks like your ico file has not enough resolutions. Edit it with some graphic software like Free Icon Editor
Take a look at Icons Guidlines
For Classic Mode, the full set is 16x16, 24x24, 32x32, 48x48 and 64x64. (but better have some more resolutions up to 256x256)
Here is screenshot of IcoFX editor with opened icon that has multiple resolutions inside
I'm using Visual Studio 2010.
I want to build an application displaying some text with custom fonts.
All the fonts are TrueType fonts, with the editable attribute, and are declared as resource with "Copy Always".
But, even at design time, some fonts are replaced by the standard Silverlight font, in the XAML editor.
For example I have 14 different versions of the Helvetica font (bold, oblique, italic, narrow, condensed... and mix of those). But only 3 are correctly displayed, others are using the fallback font. If I open the ttf files with the windows font preview application everything looks ok.
Any idea of what can be wrong ?
Thanks for your help.
After two months of hair pulling I've finally come with a simple solution :
Don't use - (dash) in your embedded font names
I hope it can help somebody.
I want my WP7 app controls and to have a certain font which is not in Visual studio font selection, how can I add the font to the font list of Visual studio or directly into my controls?
This can be easily done using Expression Blend.
In your project, select a TextBlock and go to the Properties panel, under Text section, there is a Font Manager button (see below), click it and then you can select the font you want in a popup window.
Expression Blend will automatically create a Fonts folder and put all the embedded fonts in there, really easy to use. :)
Here's a post showing how to embed fonts in a silverlight project (see the section 'Custom Fonts'):
http://blogs.silverlight.net/blogs/msnow/archive/2009/09/09/97060.aspx
I haven't tested this in a windows phone project but it should work.
I'm using a non English (Hebrew) font in a WPF application. The font was embedded in the project by expression blend.
In the designer I see the font correctly, but during the run time part of the letters are being changed to different font style.
What could it be?
Are the design and runtime environment on the same machine ?
If not, check for installed fonts.
If it's on the same machine, then maybe check if some localization happens on during runtime.
I use the WPF RichTexBox control in WPF project. The problem I get stuck in is it cannot display the unicode as the System.Windows.Forms.RichTextbox in Win Project.
E.g : When I copy a paragraph of Chinese language and paste it to the WPF Richtextbox. The font is break and it cannot display. But when I use System.Windows.Forms.RichTextbox control then I display ok.
So, how can I resolve this problem in WPF project.
I would guess that you're using a font that doesn't support Unicode. Try making sure you're using a Unicode-capable font to display the Chinese characters. (If you don't know, try a few common fonts, like Tahoma, in wordpad.)