Questions tagged [glyph]

The shape of a character as rendered (e.g in a font)

330 questions
7
votes
1 answer

Getting information about a glyph in Core Text

I just saw this recent question on SO, which gets somewhat close to what I'm asking here. So I'm trying to typeset a mathematical equation using Core Text and NSAttributedString. It was working pretty well for expressions like x2, but then I came…
architectpianist
  • 2,562
  • 1
  • 19
  • 27
7
votes
1 answer

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…
user258276
7
votes
3 answers

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…
user251949
7
votes
2 answers

CSS Content special character : Hex vs normal character

Example 'BLACK STAR' ★ (U+2605) .a:after { content: "\2605"; position:absolute; } .b:after { content: "★"; position:absolute; } Demo : http://jsfiddle.net/l2aelba/vBjxX/ Why someone/most recommended to use HEX like \2605 in CSS value ?…
l2aelba
  • 21,591
  • 22
  • 102
  • 138
6
votes
2 answers

how to calculate 'Size' of FormattedText or GlyphRun in wpf?

In WPF4, how can i calculate the 'Size' of FormattedText or GlyphRun for a drawingvisual. I'm using drawingvisual in a canvas. When i change text size or text, changes occur but Actual Width and Height are same or don't get updated. Using dc As…
Code0987
  • 2,598
  • 3
  • 33
  • 51
6
votes
1 answer

Font glyph not rendering with Graphics2D drawString since Java 7u13

I have a weird problem when drawing strings with some specific true type fonts in Java 32bit on Windows 10. Since Java 7u13, whenever a character/glyph of the font is wider than 4 times it's height, it is not rendered at all using…
rince
  • 91
  • 4
6
votes
4 answers

Spacing between the glyphicon and text?

I am trying to add a glyph icon as part of an email address link. The icon shows but there is no spacing between the icon and the email address text (I want the hyperlink to include both the icon and the text... including the space). What's the best…
user2162381
  • 71
  • 1
  • 1
  • 2
5
votes
1 answer

WPF : Glyph right-to-left text rendering

I want to use Glyph to render right-to-left languages text (e.g. Arabic or mix English and Arabic). I'm using this code: Typeface typeface = new Typeface(new FontFamily("Arial"), FontStyles.Italic, …
Maria
  • 344
  • 8
  • 30
5
votes
1 answer

Can I use alternate glyphs in HTML code?

I have chosen a font in Photoshop which has many alternate glyphs for each letter (see attached image) is there a way to display different glyphs when coding this in HTML/CSS by using the GID and Unicode references?
user3589485
  • 357
  • 3
  • 7
  • 20
5
votes
1 answer

How to convert a Swift String to an array of CGGlyph

This snippet can be used for drawing CGGlyphs with a CGContext: //drawing let coreGraphicsFont = CTFontCopyGraphicsFont(coreTextFont, nil) CGContextSetFont(context, coreGraphicsFont); CGContextSetFontSize(context,…
user965972
  • 2,489
  • 2
  • 23
  • 39
5
votes
1 answer

In d3 is it possible to dynamically change where a path position starts for tweening?

to: clarify. Picture a circle. We start drawing the circle from a particular coordinate. Now lets draw the circle starting from another coordinate. I am playing with path data derived from SVG glyphs and then using d3js tween to animate the change…
chris loughnane
  • 2,648
  • 4
  • 33
  • 54
5
votes
1 answer

Number of characters in a string (not number of bytes)

In a string in objective-c if I say something like [myStr length]; it returns a number which is the number of bytes but what can I use to return the number of characters in a string. For example: a string with the letter "a" in it returns a length…
Albert Renshaw
  • 17,282
  • 18
  • 107
  • 195
4
votes
1 answer

How do I determine the fallback font for Pango?

I'm rendering some text using pangomm, but the font that I am using doesn't have glyphs for parts of the text (in this case, there is some Japanese mixed in with English). Pango seems to render the text correctly using a fallback font. How can I…
cyang
  • 5,574
  • 2
  • 25
  • 34
4
votes
4 answers

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…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
4
votes
2 answers

XP Style Glyph annoyance in ActionBars

I dont like to ask too many questions in relation to the appearance of components, but these days appearance in Applications seems just as important. Anyway, please see the below images: Both are using the TActionManager and TActionMainMenuBar to…
user741875
1 2
3
21 22