fonts

How to control the font DPI in .NET WinForms app

I created an app for a small business. Some of the employees in the office can not see the form correctly. The reason is they have their DPI setting set to above 96dpi. Does anybody know of a way to control this? For all of you who have experience with winforms apps, how do you control your form layout so that DPI does not affect the ...

WPF Blurry fonts problem - Solutions

Problem is described and demonstrated on the following links: Paul Stovell WPF: Blurry Text Rendering www.gamedev.net forum Microsoft Connect: WPF text renderer produces badly blurred text on small font sizes Explanation: Text Clarity in WPF. This link has font comparison. I would like to collect all possible solutions for this p...

How can I find the user's fonts in my .NET application?

How can I find the font that the user has set in their Windows Display Properties using C# in .NET? I want to display a form using the fonts that the user has selected. The fonts I want are those selected in the Windows Display Properties form for 3D-objects, menus and window title bars. But I cannot find a way to access them. There is...

How do I tell Java to map a logical font (e.g. SansSerif) to a specific font on my system?

Is there a way to map a logical font (e.g. SansSerif) to a different font when running a Java program? If so, does the method differ between Java VM versions? ...

How to get a list of installed True Type Fonts on Linux using C or C++?

How can my app get a list of the True Type Fonts that are available on Linux. Is there a standard directory where they are stored across different distributions? Or some other standard way to locate them? ...

How do you specify font sizes in CSS so that they match mockups and allow resizing?

We're running into issues with how we specify font sizes. If we specify the font sizes using pt, they don't always look the same across browsers/platforms. If we specify font sizes using px, IE6 users can't resize the text. ...

What is the most readable fixed width font in Modelsim that is widely available

Modelsim, an HDL simulator, allows you to specify the font used by the output. Fixed width fonts allow for more orderly output, but many fixed width fonts are not easy on the eyes. What would you recommend? I currently use Lucida Console. I've tried Inconsolata and Consolas per some recommendations, but Modelsim does not render them ...

What does it mean when my text is displayed as boxes?

I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as boxes? What is up? See also: What does it mean when my text is displayed as Question Marks? ...

What does it mean when my text is displayed as Question Marks?

I'm attempting to display some text in my program using (say) Windows GDI and some of the unicode characters are displayed as question marks? What is up? See also: What does it mean when my text is displayed as boxes? ...

Why use monospace fonts in your IDE?

I've seen a couple of font topics on SO and it seems a majority of people use monospace fonts for programming tasks. I have been using Verdana for programming for a couple of years and I really like the enhanced readability, without missing anything monospace related. Why do you use a monospace font? ...

How to embed fonts in HTML?

Hi all, I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have see the W3C solution, which doesn't even work on Firefox, and this pretty cool solution. The second solution is for titles only. Is there a solution available for full text? I'm tired of the standard fonts for...

How can I specify a font for a window created through CreateWindow?

I'm creating window using pure Win32 API (RegisterClass and CreateWindow functions). How can I specify a font for the window instead of system defined one? ...

SWT - OS agnostic way to get monospaced font

Is there a way in SWT to get a monospaced font simply, that works across various operating systems? For example. this works on Linux, but not Windows: Font mono = new Font(parent.getDisplay(), "Mono", 10, SWT.NONE); or do I need to have a method that tries loading varying fonts (Consolas, Terminal, Monaco, Mono) until one isn't nu...

How do I get all installed fixed-width fonts?

I'm wondering if there are any simple ways to get a list of all fixed-width (monospaced) fonts installed on a user's system in C#? I'm using .net 3.5 so have access to the WPF System.Windows.Media namespace and LINQ to get font information, but I'm not sure what I'm looking for. I want to be able to provide a filtered list of monospace...

runtime font loading in Flash/AS3

Imagine you're creating a presentation that will be translated into a dozen different languages, including ones with non-latin characters (Chinese, for instance). The client's branding style guide dictates that certain fonts are acceptable for certain languages. The content itself is required to be externalized, so that the text can be r...

how to identify a font as symbolic in java?

Hello, I'm currently looking for a possibility in Java to identify a font as symbolic like OpenOffice does. Characters with the font Windings or Webdings and so on should be rendered with the correct "pictures". Anyone an idea how to distinguish between normal fonts and fonts with symbols? ...

Obtaining the maximum height of a font

So I have an NSFont, and I want to get the maximum dimensions for any characters, ie. the pitch and letter height. [font maximumAdvancement] seems to return an NSSize of {pitch, 0}, so that's not helping. Bounding rect doesn't seem to work either, and the suggestion from jwz's similar question of creating a bezier path, appending a gly...

MessageBox.Show-- font change?

Hi all, I'm using the MessageBox class to show errors to users, and while that might not be the right behavior, it's very convenient. This is a touchscreen application, however, so I need the 'ok' button to be much larger than it is (curse my inordinately large fingers!). I think that if I increase the font size in the dialog box, I s...

how do I add a font in gVim on windows system

I wanted to add a UTF-8 font in Gvim but I could not find out how to do this. I tried to follow the step on this manual but it still did not work. http://www.inter-locale.com/whitepaper/learn/learn_to_type.html (vim section halfway the page) Can anyone tell me how to add a font in Vim so I can have Japanese characters displayed ? ...

Web pages and barcode fonts

I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome? Here is my code: <html> <he...