fonts

Text textures with Custom Fonts OpenGL ES

Dear All Having little experience in Opengl es (or opengl) I was hoping somebody could help me out with this. I'm creating an opengl es application and I would like to be able to dynamically create the text of my buttons etc. The 2 obvious reasons for that are: -to be modular (changing the text quickly without using photoshop) -to ...

Install a font in to a Server

Hi. I have developed a PHP project. In this I want to implement the font style in Wendy Medium. But I don’t know how I install this font in my server. Does any one know how to do this? Thanks in advance. ...

Can't load font using font file name

There is font file in Windows folder (Font name is Lucida Sans). I try to load that font using following code but I can't create the font object PrivateFontCollection c = new PrivateFontCollection(); c.AddFontFile("c:\\windows\\LSANSDI.TTF"); FontFamily fa = c.Families[0]; //This line succeeds Font fn = n...

How do I use javascript to change the font colour on my webpage?

I can't use JQuery sadly I need to use good old Javascript. I have a forum and a black theme and when people use black text on it you can't see it. So I want to use javascript to change all the black text on the page to white when the page loads. ...

custom arabic font in ios.

Dears, I 'm a novice in iphone programming. I am trying to make an iphone App that displays mainly Arabic language content. I want to use a custom arabic font for displaying that content, not the iphone default arabic font. I used the following code: - (void)viewDidLoad { [super viewDidLoad]; [arabicLabel setFont: [UIFont fontW...

Cocoa get string width in pixels from font

Hey guys, I am trying to find the width in pixels of a string from the font and font size. I am currently using this code, but it is not working 100% of the time. Is there another way to do it? NSSize textSize = [aTextLayer.string sizeWithAttributes:[NSDictionary dictionaryWithObjectsAndKeys:@"Bank Gothic Medium", NSFontNameAttribute, [...

OpenGL-ES Font Rendering (on iOS)... Sanity Check

I'm writing a game for iOS. It has a game map, and I'm using OpenGL to draw it, because the other options were too slow. I have units on the map, represented by alphabetic letters, a la Dwarf Fortress. However, rendering text in OpenGL bites. I'm presently using a performance-tweaked mutant of Texture2D, which was good enough to protot...

On iOS, can I access the system-provided font's TTF file

I'm trying out FTGLES to dynamically display text in arbitrary fonts on OpenGL-ES on iOS (cf. my SO question here). That library seems to require direct access to the TTF file to use the font. Using kosher methods, can one directly access -- by path -- the system font files on iOS? I've RTFM'd and couldn't find anything. Barring that, d...

Tahoma text doesn't look smooth

Hi, I'm using the Tahoma font for my website's logo, and it doesn't look smooth, anti-aliased, like it does in my design on GIMP. Anyone know of ways to make HTML text look better, or am I going to have to just go with an image? Also, could someone explain to me why text looks this way in HTML, and why it never seems like it looked this...

Java set Font Color in a disabled Text Field

I have a disabled JTextField and due to readability problems i want to make the font black again. So that it looks like its not disabled, but i cant edit it. any suggestions? ...

How to embed Hebrew fonts to a website?

I was trying to embed few hebrew fonts to a website. using this code in my css file : @font-face { font-family: tamruta; src: url('/css/tamruta.eot'); src: local(tamruta), url('/css/tamruta.ttf') format('opentype'); } it supposw to work on all browsers. some how it doesn't work, and I have a massage while trying to upload ...

RichTextEdit with multicolored text ?

How do I create a RichTextEdit using RIM 4.5 API that contains text with multiple colors? For example I want to create a RichTextEdit as follows: The Text is "Hello BB world" "Hello" should be blue "BB world" should be red "BB" should be ITALIC "Hello" should be BOLD The main problem is getting colors, not the bold and italic. I ha...

Calculating x-height in .NET 2.0

How can we calculate x-height of a font (typeface) without needing .NET 3.0 or later (for example I would like to avoid System.Windows.Media namespace). ...

Embedding Verdana in a dynamic text field, need to make it bold - do I have to buy Verdana Bold?

First off, I don't have a copy of Verdana bold. It's no where on my hd and I don't know the first thing about making fonts so that is out of the question. I've been searching for a couple of hours now and it seems the tried and true solution is to embed multiple versions of the font off the stage. Ridiculous. Right? In either case, ...

Detecting the font corresponding to the preferred system language

Hi all, I'm in a situation where I need to draw glyph characters. So, the logical course of action is this: CTFontRef ref = CTFontCreateWithName(CFSTR("HiraKakuProN-W3"), 12, NULL); CGFontRef ftRef = CTFontCopyGraphicsFont(ref, NULL); CGContextSetFont(theContext, ftRef); int count = [self.text length]; UniChar *chars = malloc(sizeof(...

AppleGothic Font renders different on iPhone3 and iPhone4/iPod devices

Just realized there are big differences in the AppleGothic font on different on iPod / iPhone 3G and iPhone 4 devices. Does anybody knows how is possible that the same embedded font renders so different? ...

How to use fonts which are not present in client system to build web site?

I was trying to create my portfolio website and wanted to use some fonts like "Myriad Pro" and "Gotham" (Source : http://www.inspirationbit.com/16-best-loved-font-bits-in-web-design/) .But i dont think those fonts will be in the client machine for the browser to support it.I am wondering how can i use these stylish fonts in my website ?...

Powerpoint 2007 - Inserting dynamic data

Hi, so I've found that Powerpoint 2007 has no bookmark functionality. So I can't just insert dynamic data into a presentation. Also, there are no autostart event handler, but I found a way of doing it by editing the XML data. This now works, I've got a custom event handler that is run as expected. Now, I tried to solve the no bookmark ...

Copy emacs font settings to another computer

I want to copy over the emacs fonts settings from one computer to another - any ideas how to do this. I did C-u C-x = to get the following : character: r (0162, 114, 0x72) charset: ascii (ASCII (ISO646 IRV)) code point: 114 syntax: word category: a:ASCII l:Latin buffer code: 0x72 file code: 0x72 (encoded by coding sy...

Is it possible for text rendered through GraphicsPath.AddString to look as good as TextRenderer.DrawText or Graphics.DrawString?

I was reading this article on warping text to splines and decided to play around with GraphicsPath.AddString which I had never used before. I created a simple test Control to compare the three methods of drawing text: GraphicsPath.AddString, TextRenderer.DrawText, and Graphics.DrawString. Here is the OnPaint method of my control. ...