fonts

Using a custom font with CSS3/HTML5?

I have this code in the beginning of my CSS stylesheet (linked to my index.html, of course): @font-face { font-family: "Calibri"; src: local("Calibri"), local("Calibri"), url("fonts/Calibri-Bold.otf") format("truetype"); } And i'm using: #id { font-family: Calibri, Verdana, Arial, sans-serif; } But it still doesn't work. Wh...

Portable way of determining font properties (mono and standard .net)

Does anyone know a way to determine if a font is monospace and the width and height of a single character (only relevant if it is monospace). The important requirement is that it works with mono and microsoft implementations of .net . Thanks ...

In Apache FOP, how do I set the font base programmatically, and still have the fonts from <directory> loaded?

I'm using Apache FOP 1.0. The code is running on different servers, so I put the fonts in each server's instance root. My plan is to set the font base programmatically (to the server instance root, plus "/fonts/"), and in my fop configuration file, set font paths relative to this font base. Here's the code snippet that makes the FopFacto...

Web Safe Font Weights -- How to get thinner?

When I design in Photoshop, my fonts are thin and crisp, but when I declare fonts in CSS -- even when using font-weight: lighter -- the fonts always appear bolder. Maybe this is just how the browser renders the font (In IE fonts stay thin), but I was wondering if there were any tricks or tips for achieving the same thin, crisp looks. ...

barcode fonts vs barcode printer fonts

Does anybody have any idea about the differences between barcode fonts (used as a font in reports) and fonts that are printed directly from a barcode printer? Why should we put a star before and after the barcode font and we don't need that when we use a barcode printer? I've had a lot of issues when I used a barcode font !!!! Any i...

How to spec font sizes in CSS for a mobile web site for the latest versions of Android, Blackberry, and Safari Mobile?

What's the best way to spec CSS fonts sizes for the latest versions of Android, Blackberry, and Safari Mobile? I.e., using font size keywords (medium, small, etc.), setting the body to a percentage and using ems for headings, or using pixels. This is for a mobile web site, not an app. ...

CSS style for ARBONNE text

I'm making a website for a friend and he wants the text font to be AR BONNIE. Does anyone know the CSS for this? I can't seem to find the font anywhere. ...

CutyCapt - unable to capture non-latin chars

Hello, i have install Qt44.* which includes libWebKit in order to compile and make the Cutycapt script/app as described at the project homepage (http://cutycapt.sourceforge.net/) The script runs but it is unable to capture non-latin fonts (e.g. Greek). When doing a screen capture for websites with latin characters everything works. The...

How to convert a bitmap font (.FON) into a truetype font (.TTF)?

Hello, My program (win32, Delphi) needs to display special chars in some columns of a table. To do that I use a special font for those columns. I got the font from my client. It is a .FON font. It works good on the screen but I often get problems as soon as I want to use it to print something. I would like to convert this .FON font int...

How can i set the proper font for java application on windows and mac?

I have been developing a program on a windows machine. All dimensions for the application are based on the default windows font and size. The default mac font seems to be larger in size, therefore not all text is visible in labels, comboboxes, ... How can i make sure that the proper font size is used on mac machines? ...

Android: Font Rendering Problems with .ttf >3MB

Hello All! My Android Application needs support for various languages (like Chinese etc.). Most of them are in the DroidSansFallback.ttf file from Ascender. See http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts;hb=HEAD On some Android Phones, there is DroidSansFallback.ttf, but with many glyphs missing,...

Flash CS5: combining bold and regular text in a textfield?

I am trying to combine bold and regular text in a textfield but how do I embed an font family and not just a single style of a font? See example of how I embedded a font, you can only choose one style: "regular", "bold", "italic" or "bold italic" at once: However, when you try to embed the text (via the IDE settings or actionscript) ...

Adding Color to Font's attributes java swing

I tried to add Color to java.awt.Font's attributes like this: font.getAttributes().put(TextAttribute.FOREGROUND, jColorChooser.getColor()); But I get the error The method put(TextAttribute, capture#12-of ?) in the type Map is not applicable for the arguments (TextAttribute, Color) The Font API says This Font only r...

Embedding fonts forces Silverlight project to always rebuild.

I'm having a weird issue with my Silverlight 4 project, although it's one I've seen before. Basically, embedding fonts forces my Silverlight app to always rebuild even if everything is up to date. This kind of sucks as the font embed task takes a lot of memory and will eventually crash VS. I'd like to be able to build the project from th...

css font-face issues...

Hi guys I have this code in my css file from the @fontsquirrel generator /// changed the code to how it is now /// @font-face { font-family: 'AdLibRegular'; src: url('../fonts/adlib-webfont.eot'); src: local('☺'), url('../fonts/adlib-webfont.woff') format('woff'), url('../fonts/adlib-webfont.ttf') format('truetype'), ...

How to change StatusBar font color in wxWidgets?

I want to display an error message in red on status bar if a user action results in error. I have tried setting the forground color to red but the it still displays the message in default black font. How do make the font color red on statusbar? I'm using wxWidgets 2.8 on red hat 5.5 Thanks! ...

[iOS] The same number of characters in each line of UITextView?

Hi I'm developing a simple writing program using UITextView to study Cocoa programming. In UITextView, each line has different number of characters. I tried to change fonts of UITextView, but the width of each character seems to vary. For example, l and L has different width. Is there anyway to keep the same number of characters in each...

Creating an equation editor using STIX fonts?

Now that the STIX fonts have been released, how would one go about rendering equations with them? What are the basic rendering patterns, e.g. superscript, division type block, integral type block, square root like patterns, etc? How do these map to the glyphs in the STIX fonts? Pointers to resources would be very useful. I realize thi...

List of fonts in Silverlight 4

Am using Silverlight 4. I want to populate a combobox with a list of the fonts available. I have searched high and low and can't find a way to do this. Seems be a lot of dead ends. There was a similar question asked in May but with no suitable answer. Surely its not impossible? ...

Text with gradient and custom font

Ok here is my challenge, I have some <h1> tags that I want to convert into a custom font and apply a gradient from left to right. Initially I was going for the idea of using cufon as this does both, but it turns out cufon only supports top to bottom gradients. My only other option as far as I am aware is sIFR which I believe may suppor...