UWP app custom font not working - xaml

I've used both TTF and OTF custom fonts many times in UWP apps without issue, but in this case, I have an OTF font that will not work in my app.
I have a test app that has one page with only the text on it, like this:
<TextBlock Text="Testing" FontFamily="ms-appx:///Assets/Fonts/customfont.otf#font name" FontSize="30"/>
The font file is located at that location in my project and the #fontname is the same one that shows in Windows Font Viewer.
I've tried converting the OTF to TTF, but it didn't change anything.
I've installed the OTF font on my Windows System and I can use the font in MS Word and other programs and it looks correct.
This is a professional font provided by a company that sells high quality fonts.
I've run out of trouble shooting tactics on this. Anything else I should try?

What font are you using? Sometimes the #Font Name does not equal what is seen in the Windows Font Viewer. I have a database of the values that I use with my app Font Lounge. I'll try looking up the value.
--
Just saw that you figured it out - font weight is not part of the #Font Name as the #Font Name refers to the family only.

Related

TrueType font not rendering correctly to pdf from SSRS

I have True Type Font Verlag installed on my Developer machine & SSRS Server. The Font embeddability value = "Preview/Print"
When I render to pdf from inside Visual Studio it renders correctly.
When I deploy the report to the SSRS Server and render to Excel it's correct, but when I render to pdf, the font reverts to default font.
I have read many similar questions but found no solution. It looks as if it should correctly embed the font into the pdf (thus making it unnecessary for the client to have it installed on their machine.) But it's not even displaying it on the
I had a similar problem even though I had installed the font. In the end, it was because I had not installed the font for all users.

SSRS Check printing using MICR font

I need to create AP check for the invoices. I am using the MICR font at the bottom of a check in the SSRS report. I used the text box size as big as 3 times the font size. When I preview the report, the text shows just like Arial font. When I export to PDF and open the document properties of that PDF file, it shows that MICR font exists. But it is not showing like that MICR font that used in check routing/accounting number.
It does not work for in report viewer, exported PDF or word files.
Could anyone please guide me how to show that font in the text box?
Is it a TrueType font? Microsoft has openly stated that if you're using anything other than TrueType e.g. OpenType that you're likely to run into issues with SSRS and the Report Builder. OpenType is not unsupported but has limited support at best.
If a TrueType font is available for MICR, ensure it is installed on your client and server machines. When you install the font on your server, you will need to restart the Reporting Services service, or preferably the server, to detect changes. I found this article exceedingly helpful when setting up custom fonts for SSRS: Setting up Custom Fonts with SQL Server Reporting Services.
The reason why you're seeing a font similar to Arial in your report is because of a limitation with Windows Forms Applications.
The root cause is that Windows Forms applications support TrueType fonts and have limited support for OpenType fonts. If we attempt to use a font that is not supported in Report Builder or SQL Server Data Tool (SSDT) to design a report, the Microsoft Sans Serif font will be substituted.
Found at this source.

PDF – A font displays correctly even it is not installed in PC?

Is PDF store the font in binary, or which logic working behind that?
Because, I create PDF from jasper report and used font is installed in my PC only.
When i have checked generated PDF in other machine then it show the correct PDF font
even font not installed in other PC.
Let me know if anything is missing test or verify?
Fonts can be embedded in PDF files. If one font is missing, the text is displayed anyway using another classic font. You can have a great explanation here : http://www.prepressure.com/pdf/basics/fonts

Use custom fonts in VB.net

I am trying to make a GUI like a iPad/iPhone, so to be able to make it look good, of course you need to use a font like Apple. I have downloaded it - MyriadPro-Semibold and put it in the control panel font's folder, but when selecting a font, it is not there. I found this online:
Label1.Font = Resources.GetFont(Resources.FontResources.MyriadPro-Semibold)
I suspect it is C (minus the ";" at the end of the line), but I don't know. Should I have to put the font in the resources or what?
Thanks in advance.
Myriad Pro is an OpenType font. Only WPF supports such fonts, Winforms requires a TrueType font.
Just one hint, when you copy Apple fonts then be sure to not be successful. Apple has a lot of lawyers and isn't afraid to use them. Especially when the font is used for their corporate logo.

TTF webfont to desktop-useable TTF

I'm using a CC-BY FontAwesome typeface for icons on my Twitter Bootstrap-driven website. Now I want to use it in an image editor for a prototype of another website. But it does not work. I cannot use its webfont-TTF with my image editing application. How can I convert it to a normal font?
Please dont give me links to free-/shareware closed-source utilites. I want to know, why does this happening and implement my own script which would "fix" this font.
FontAwesome should work out of the box. Heres how to use it:
Download FontAwesome. Then open fonts/FontAwesome.otf and install it (either with fontbook on osx or by adding it to your fonts folder on windows).
Use the Cheatsheet to actually use specific icons. Find the icon you want there, select the icon and copy it.
Switch to your image editor, create a text item, set the font to FontAwesome, and paste the symbol you copied.
I assume you are talking about http://fontawesome.io/ .
If so there is nothing wrong with the TTF version of this font and no reason to convert it. I have tested the font on linux by dropping the .ttf file in /usr/share/fonts/ and it is useable in LibreOffice, Gimp and Terminal.
You problem is almost certainly one of:
The process you used to install the font
You aren't entering the correct Unicode characters or your image editor doesn't support Unicode.
However you failed to provide enough details. You haven't even defined what you mean by "it does not work". Please update your question with details like the process you used, a link to the actual font you downloaded and the operating system and image editor you're using.
In case you're still looking for a solution: the easy way is to convert the included SVG font to usable TrueType or OpenType, using e.g. FontForge or an online service.
AFAIK SVG fonts have no DRM flags, unlike TrueType.