glyph

Is it possible to remove hideous outline around a TSpeedButton glyph?

给你一囗甜甜゛ 提交于 2019-11-30 06:09:54
I've run into a bit of a snag, is it just me or can you not assign an image from a resource to TSpeedButton's glyph without a hideous black outline as shown below? I've assigned it exactly the same way for the TImage component and I'm getting the result needed. I've been searching for quite a while but no one seems to have this bizarre and annoying problem. Here's my source code for the form below: procedure TForm3.Button1Click(Sender: TObject); var r : tresourcestream; png : tpngimage; begin r := tresourcestream.CreateFromID(hinstance,34,'cardimage'); png := tpngimage.Create; png

unicode table information about a character in python

浪子不回头ぞ 提交于 2019-11-29 12:13:45
Is there a way in python to get the technical information for a given character like it's displayed in the Unicode table? (cf. https://unicode-table.com/en/ ) Example: for the letter "Ȅ" Name > Latin Capital Letter E with Double Grave Unicode number > U+0204 HTML-code > Ȅ Bloc > Latin Extended-B Lowercase > ȅ What I actually need is to get for any Unicode number (like here U+0204) the corresponding name (Latin Capital Letter E with Double Grave) and the lowercase version (here "ȅ"). Roughly: input = a Unicode number output = corresponding information The closest thing I've been able to find is

Is it possible to remove hideous outline around a TSpeedButton glyph?

狂风中的少年 提交于 2019-11-29 05:51:48
问题 I've run into a bit of a snag, is it just me or can you not assign an image from a resource to TSpeedButton's glyph without a hideous black outline as shown below? I've assigned it exactly the same way for the TImage component and I'm getting the result needed. I've been searching for quite a while but no one seems to have this bizarre and annoying problem. Here's my source code for the form below: procedure TForm3.Button1Click(Sender: TObject); var r : tresourcestream; png : tpngimage; begin

Find characters that are similar glyphically in Unicode?

一世执手 提交于 2019-11-29 03:48:38
Lets say I have the characters Ú, Ù, Ü. All of them are similar glyphically to the English U. Is there some list or algorithm to do this: Given a Ú or Ù or Ü return the English U Given a English U, return the list of all U-similar characters I'm not sure if the code point of the Unicode characters is the same across all fonts? If it is, I suppose there could be some easy way and efficient to do this? UPDATE If you're using Ruby, there is a gem available unicode-confusable for this that may help in some cases. This won't work for all conditions, but one way to get rid of most accents is to

Core Text calculate letter frame in iOS

白昼怎懂夜的黑 提交于 2019-11-28 15:16:16
I need to calculate exact bounding box for every each character (glyph) in NSAttributedString (Core Text). After putting together some code used to solve similar problems (Core Text selection, etc..), the result is quite good, but only few frames (red) are being calculated properly: Most of the frames are misplaces either horizontally or vertically (by tiny bit). What is the cause of that? How can I perfect this code?: -(void)recalculate{ // get characters from NSString NSUInteger len = [_attributedString.string length]; UniChar *characters = (UniChar *)malloc(sizeof(UniChar)*len);

C#: Check for unsupported characters/glyphs in a font

我与影子孤独终老i 提交于 2019-11-28 14:03:14
I am working on a translation software add in (C#, .NET 2.0) which displays translated texts in a emulated device display. I have to check if all translated texts could be displayed with specified fonts (Windows TTF). But I didn't found any way to check a font for unsupported glyphs. Does anyone have an idea? Thanks Are you limited to .NET 2.0? In .NET 3.0 or higher, there's the GlyphTypeface class, which can load a font file and exposes the CharacterToGlyphMap property, which I believe can do what you want. In .NET 2.0, I think you'll have to rely on PInvoke. Try something like: using System

Is there a “glyph not found” character?

ⅰ亾dé卋堺 提交于 2019-11-28 09:00:48
Let's assume we have a text that contains a Unicode character that cannot be displayed because our font has no corresponding glyph. Usually, a placeholder is displayed instead, e.g. a rectangular block thingy (see screenshot). Is there a "glyph not found" character that reliably produces this glyph? I'd like to write something like "If the following text contains <insert character here> then you need another font..." in a UI. By the way, I am not talking about � ( replacement character ). This one is displayed when a Unicode character could not be correctly decoded from a data stream. It does

unicode table information about a character in python

牧云@^-^@ 提交于 2019-11-28 06:09:31
问题 Is there a way in python to get the technical information for a given character like it's displayed in the Unicode table? (cf.https://unicode-table.com/en/) Example: for the letter "Ȅ" Name > Latin Capital Letter E with Double Grave Unicode number > U+0204 HTML-code > Ȅ Bloc > Latin Extended-B Lowercase > ȅ What I actually need is to get for any Unicode number (like here U+0204) the corresponding name (Latin Capital Letter E with Double Grave) and the lowercase version (here "ȅ"). Roughly:

Find characters that are similar glyphically in Unicode?

大兔子大兔子 提交于 2019-11-27 17:51:47
问题 Lets say I have the characters Ú, Ù, Ü. All of them are similar glyphically to the English U. Is there some list or algorithm to do this: Given a Ú or Ù or Ü return the English U Given a English U, return the list of all U-similar characters I'm not sure if the code point of the Unicode characters is the same across all fonts? If it is, I suppose there could be some easy way and efficient to do this? UPDATE If you're using Ruby, there is a gem available unicode-confusable for this that may

Core Text calculate letter frame in iOS

你离开我真会死。 提交于 2019-11-27 09:07:33
问题 I need to calculate exact bounding box for every each character (glyph) in NSAttributedString (Core Text). After putting together some code used to solve similar problems (Core Text selection, etc..), the result is quite good, but only few frames (red) are being calculated properly: Most of the frames are misplaces either horizontally or vertically (by tiny bit). What is the cause of that? How can I perfect this code?: -(void)recalculate{ // get characters from NSString NSUInteger len = [