glyph

How to set the header sort glyph in a .NET ListView?

How do i set the column which has the header sort glyph, and its direction, in a .NET 2.0 WinForms ListView. Bump The listview is .net is not a managed control, it is a very thin wrapper around the Win32 ListView common control. It's not even a very good wrapper - it doesn't expose all the features of the real listview. The Win32 list...

Rendering Certain Character Glyph on iPhone

I am currently using the iPhone SDK to create an app that utilizes Indic scripts. However, the iPhone has issues with rendering certain glyphs in many Indic scripts. For example: प + ् + र = प्र or ਕ + ੍ + ਰ = ਕ੍ਰ When you type this on a Mac (or Windows) the computer will automatically render the three characters into the one gly...

Detecting glyphs occurrences in any fonts

Hi, everyone. I'm writing a small .NET application that can produce SWF files, and I need to support Unicode fonts. I don't know the things on it and font rendering well, so I understand that I've made some blunders while writing my application: many fonts installed on my Windows don't support Unicode characters so I can see hollow squa...

sIFR Only the first font-style of glyph in my swf will display, cannot seem to call up the others.

I've uploaded my .swf with bold, normal and italic glyphs of the font embedded. I then go to my sifr-config.js file to style the text using CSS. All properties except the font-style:italic; and font-weight:bold; are effective. In fact, when I try to use these properties the flash text doesn't show up at all. But if I go back into my f...

DefineFontAlignZones in SWF version 8 and how to calculate the alignment zone for a glyph

Version 8 of the Flash SWF format provides the DefineFontAlignZones tag for better text rendering. The advanced text rendering engine uses alignment zones to establish the borders of a glyph for pixel snapping. In order to use this tag I have to calculate the alignment zone for each used glyph. Does anybody know how to do this? ...

Windows: Getting glyph outlines for substitution characters from other fonts

I need to render fonts into a 3d game world, so I use the GetGlyphOutline outline function to get the glyph shapes to render into a texture. However, I want to be able to handle the case where characters are not present in the given font (as is often the case for asian other other international text). Windows text rendering will automati...

Where exactly in the Android OS is text renderred?

Let me first state what I am trying to achieve: To create a patch for the Android OS to enable it to display Arabic/Hebrew correctly. Both of these languages are Right-to-Left (RTL) and their script involves connected letters/glyphs (unlike Latin alphabets which have discrete letters). Example: The Arabic word for "car" is: سيارة...

Loading Fonts for Glyphs in Silverlight

Is it possible to load a font at runtime in Silverlight for the Glyphs object. I've tried all sorts -I've set the fonturi to a web location at runtime - no joy -I've tried the same approach as textblock etc by setting the source to a stream but Glyphs do not support this. -I've googled forever on it, but it seems that the only way is t...

What's the unicode glyph used to indicate combining characters?

My application needs to display "orphaned" combining characters. I would like to use the same format as the "official" unicode charts, using the dotted circle placeholder. See, for example: Combining Diacritical Marks (PDF) A quick scan through the charts and I came up with U+25CC "DOTTED CIRCLE". That looks good, but the note on thi...

Location on screen of location in NSTextView

Hi, I want to get the screen location (NSPoint) of a point in an NSTextView, this should be simple, but by results are always a bit off, the X is perfect, but the Y seems to vary. I've tried a few variations of the code below, but can't get the result I'm after, is the NSClipView screwing it up? NSPoint p = [[self layoutManager] locat...

WPF XAML - Could not create an instance of type 'GlyphTypeface'. at design time.

I'm trying to visualize a XAML resource file at design time. When I merge the dictionary for the following XAML resource file into a XAML Window I get the error: Could not create an instance of type 'GlyphTypeface'. The problem line is: <GlyphTypeface FontUri="C:\WINDOWS\Fonts\TAHOMA.TTF" /> I have verified that the font exist in the...

DirectWrite with hinting

Can I get glyph outline with hinting in DirectWrite? In GDI, if I call GetGlyphOutline without specifying GGO_UNHINTED, I get the outline with hinting applied. The counterpart in DirectWrite is IDWriteFontFace::GetGlyphRunOutline, but there is not such a switch. From what I see, the outline is raw and no hinting is applied. Is there a wa...

Extracting glyph-path information from ttf files

I'm trying to figure out a way to extract the information encoded in ttf files. namely: The char-to-glyph table and the individual glyph path data. Does anyone have a good reference explaining the ttf file structure, or some other solution? Keep in mind that I'm not interested in any libraries that can do it for me either (unless they ...

What is a good resource for HTML character codes -> glyph and...

Hi, I've already found a good site to convert HTML character codes to their respective glyphs: http://www.public.asu.edu/~rjansen/glyph_encoding.html However, I need a bit more information. Does anyone know of a site like the one above that also provides information on what type of character code it is? Meaning, is it a special charac...

Displaying Unicode Characters

I already searched for answers to this sort of question here, and have found plenty of them -- but I still have this nagging doubt about the apparent triviality of the matter. I have read this very interesting an helpful article on the subject: http://www.joelonsoftware.com/articles/Unicode.html, but it left me wondering about how one w...

Programmatically adding glyphs (delete key, backspace, space, etc) to menu item

It used to be that in Carbon you could use SetMenuItemKeyGlyph. What's the alternative under 10.6? Will I need to use undocumented goodness or...? Thanks ...

Windows font that clearly disambiguates the number ZERO from letter O

Our intranet web pages need to clearly disambiguate between the letter O and the number ZERO. Is there a screen+printer font that is installed on WindowsXP and Vista that does this either putting a dot inside zero or a slash through it? If there isn't such a font on the machines themselves, is there a way to embed the font in the page,...

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(...

Fonts and character encodings

a) Do fonts know anything about coded character sets (Unicode, ASCII, etc.)? In other words, does a font file specify which coded character sets may use the font? b) I assume if a font supports certain coded character sets, then any character encoding (aka code page) for that coded character set can use this font? a) Does a font's file ...

What do we use glyph for?

What is a glyph and what do we use it for especially in context of silverlight and xaml? ...