glyph

@font-face and IE9+ input tag

£可爱£侵袭症+ 提交于 2019-12-13 00:44:15
问题 I've stacked with problem which i can't understand. Trouble is that i use custom fonts on our corporate site and it works fine everywhere except IE. Problem with IE you can see on a screenshot below: And there is how it looks in chrome I'll try to explain... Fonts used for inputs and labels are the same. The problem is that all stuff displaying as expected except cyrillic glyphs in <input/> . So, what's wrong with this font? How can i get back my cyrillic glyphs? I exactly know that they are

Is there a component that behaves like a TBitBtn that is properly themed? [closed]

那年仲夏 提交于 2019-12-12 18:28:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is anyone aware of an existing Delphi component, that is properly themed like a TButton (has a fade in/fade out effect upon mouse hover in Windows 7 and above) supports Glyphs like TBitBtn but WITHOUT using ImageLists (the same way TBitBtn does). If there is no such component available, would it be possible to

Is it possible to display an alternate character with CSS?

时间秒杀一切 提交于 2019-12-12 10:38:06
问题 I am using a web font that has several different, "M's" to choose from, in the glyphs panel. The default "M" that keeps being displayed in my website is hideous. I would like to use a better looking "M" from one of the font's alternate character choices. In the glyphs panel (within Illustrator) the "M" character I want to use is: U+004d Alternates#2 (aalt2) I have this currently in my CSS: .script:before { content: "\004D"; } Unfortunately, this code does not pull the alternate "M" I want. It

Extract Font Glyphs

ぐ巨炮叔叔 提交于 2019-12-12 10:26:34
问题 I have this problem across my mind, any help will be appreciated. Is there are PHP function, or library that can extract some glyphs form a font file? Edit: By means to extract some glyphs, I wanted to create a new font file based on the glyphs extracted (so it has smaller bytes), or just get the glyphs and create base64 encoded font data from it so I can embed it via @font-face. I just wanted to get rid glyphs that has no use so CSS (base64) or font file will be loaded faster. 回答1: I can

Using NSLayoutManager to calculate frames for each glyph

℡╲_俬逩灬. 提交于 2019-12-12 07:44:49
问题 On this thread, Core Text calculate letter frame in iOS, they were able to calculate the frame of each glyph very precisely using Core Text. The final rects hug the actual drawn glyphs perfectly. Using NSLayoutManager's boundingRectForGlyphRange:inTextContainer: doesn't seem to return the glyph bounding boxes that precisely: And the returned rects don't fully enclose more complex fonts (Zapfino example): Does anyone know how to replicate the results from the above mentioned discussion without

How can I display a font awesome glyph in XAML/C#

大兔子大兔子 提交于 2019-12-12 04:37:57
问题 I have tried many things in Visual Studio, but I still can not display a glyph. Do I need to add a NuGet package? Which? Do I need a 'using ...;' in C#? Do I need a 'xmlns:...' in XAML? Should I display it with a "Label"? I know in HTML, you just add a class to your element. But I am stumped in XAML. (It's cross-platform, right?) This should a simple thing but I can not get any answers to function. Please provide an answer if you can do this and answer all points. 回答1: There is a correct

Can I create a text outline in SharpDX using a custom text renderer?

一曲冷凌霜 提交于 2019-12-12 04:08:32
问题 Background Previously I was rendering text, and giving it a glowing outline by drawing the outline 1px to each side and then placing the text on top: // Draw outline 1px to each side context2D.DrawTextLayout(new Vector2(-1, 0), _textLayout, _highlightBrush, DrawTextOptions.NoSnap); context2D.DrawTextLayout(new Vector2(0, -1), _textLayout, _highlightBrush, DrawTextOptions.NoSnap); context2D.DrawTextLayout(new Vector2(1, 0), _textLayout, _highlightBrush, DrawTextOptions.NoSnap); context2D

Adjusting the TextMatrix in iText

夙愿已清 提交于 2019-12-11 19:41:38
问题 I generated a PDF with a row of chars M. Every M had consistent width, but the distance between each was changing: first couple was 2px, the fifth one had 3px, then the next four had 2px, the tenth 3px, etc. Since there is absolutly no difference in any of the M's or any spaces inbetween in my code, only conclusion is that some width value could not scale properly in coordinate system generating an extra pixel every so often. This is how PDF calculates how much to move horizontally when a

How can I create a glyph bitmap for alphabet

时光总嘲笑我的痴心妄想 提交于 2019-12-11 11:06:22
问题 I am looking for a way which allows me to create glyph bitmap for alphabet. For example, I create the following for the letter '0', but i am wondering if there is a simpler way for me to create glyph bitmap for alphabet 'a-z' and 'A-Z'? { 1, 1, 1, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 1, 1, 1 }, Thank you. 回答1: java.awt.font.GlyphVector is a good alternative, as seen here. Addendum: Once a glyph's outline has been rendered in a BufferedImage

Text rotation in PDF

谁说我不能喝 提交于 2019-12-11 06:34:09
问题 So I have this situation: using pdftoxml.exe from sourceforge.net I got text tokens and their coordinates. If the pdf file was rotated (i.e. it has a /Rotate 90 written in its source) pdftoxml.exe swaps height and width of a given page and also x and y coordinates of any given object. That is what I understand. I was happy with it, until I came across a pdf file which used re to draw thick lines. That is, for a thick line, 4 thin lines are drawn and the space is filled, like in this picture.