font

White font with black border in XAML

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: as the title says, I would like to have a black font with a white border in my TextBox . How could it be achieved? Cheers. 回答1: Check out Blacklight controls @ http://blacklight.codeplex.com/ . In particular look at the sample on http://mightymeaty.members.winisp.net/blacklight.silverlight/ | Visual Controls | TEXT | Stroke Text Block (Alpha). 回答2: It's possible to convert text into geometry objects with advanced formatting like outlines and fills for individual letters - you can find out more about how to do that here . Having said that, I

Python 3 Finding the last number in a string

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How can I find the last number in any big string? For eg in the following string I want 47 as the output: 'tr bgcolor="aa77bb"td>font face="verdana"color="white" size="2">b>Total/b>/font>/td>\td>font face="verdana"color="white" size="2">b>47/b>/font>/td>/tr>' PS: We don't know the number. The number 47 is just an example. It can be any number from 0 to 900. 回答1: >>> import re >>> text = 'tr bgcolor="aa77bb"td>font face="verdana"color="white" size="2">b>Total/b>/font>/td>\td>font face="verdana"color="white" size="2">b>47/b>/font>/td

pdfbox: … is not available in this font's encoding

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having problems with pdfbox 2.0.2 writing a pdf document from elements of a previously read document ( https://www.dropbox.com/s/ttxiv0dq3abh5kj/Test.pdf?dl=0 ). Everything works fine, except when I call showText on a PDPageContentStream where I previously set the font with out.setFont(textState.getFont(), textState.getFontSize()) (see the INFORMATION log) and the font is ComicSansMS or ArialBlack. textState is (a clone from) the state from the previously read document. Writing text with Helvetica or Times-Roman works fine. INFORMATION:

Get default font name in Cocoa for NSMenuItem?

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using NSAttributed NSString in my NSMenuItem, but it's Font is changed as compare to default font, I wants to use default font for Attributed string. Can any one explain, how to find or fetch the default Font for NSMenuItems. Right now I am using this : NSDictionary *attributes = @{ NSFontAttributeName: [NSFont fontWithName:@"Helvetica" size:14], NSForegroundColorAttributeName: [NSColor blackColor], NSParagraphStyleAttributeName:paragraphStyle }; Thanks 回答1: To get the default font of an NSMenuItem just use the method [NSFont

Which font should I use for the newest Unicode characters?

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Note: They aren't new. Just "not supported", somehow. I'm trying to make simple controls for a element on my website, along the lines of a simple "mute" or "not mute" control. However, I haven't been able to find any fonts capable of handling the newer Unicode symbols, such as the speaker symbols ( &#x1F507 to 🔊 , or 🔇 to 🔊 They can be found in the Unicode character listings and are somehow able to be displayed in my PDF reader and Internet Explorer, but not Chrome. This is the first paragraph (above), from my perspective, with the

Loading a font directly from a file in C#

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is there a way to do something like this? FontFamily fontFamily = new FontFamily ( "C:/Projects/MyProj/free3of9.ttf" ); I've tried a variety of variations and haven't been able to get it to work. UPDATE: This works: PrivateFontCollection collection = new PrivateFontCollection (); collection . AddFontFile (@ "C:\Projects\MyProj\free3of9.ttf" ); FontFamily fontFamily = new FontFamily ( "Free 3 of 9" , collection ); Font font = new Font ( fontFamily , height ); // Use the font with DrawString, etc. 回答1: This piece of code works for me

@font-face failed OpenType embedding permission check. Permission must be Installable

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This exception occurs in here. You can reproduce it in IE11. So far I have not found the cause of the issue. Any ideas why this is being caused? CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. File: 53d9eae5-63b4-48d7-a5b8-3419455028bb.ttf The web site is running on Azure Websites platform and is using ASP.NET MVC 5. 回答1: Fixed by adding under in web.config. Edit: to prevent any problems with consequent releases I recommend doing this: 回答2: sibaspage answer pointed me into the right direction.

Java: Friendlier way to get an instance of FontMetrics

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there a friendlier way to get an instance of FontMetrics than FontMetrics fm = Graphics.getFontMetrics(Font); I hate this way because of the following example: If you want to create in a game a menu and you want all the menuitems in the center of the screen you need fontmetrics. But, mostly, menuitems are clickable. So I create an array of Rectangles and all the rectangles fits around the items, so when the mouse is pressed, I can simply use for (int i = 0; i But to create the rects I also need FontMetrics for their coordinates. So this

Changing font size of tabs strip in Sublime Text 3

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I used this answer , with a little bit help of Sublime 3 Help , I managed to port solution and change font size (and other attributes) of sidebar in my Sublime Text 3. But how can I change (to larger) font size used by ST3 tab strip? If it is possible at all. I find filename tabs drawn with 10 pt font size quite not so comfortable on FullHD resolution screen. At least for my eyes. 回答1: As outlined in the answer you linked to, find your .sublime-theme file. Open it up and search for tab_label . The section should look something like this: {

Register font is corrupting .TTF file

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: On my system I need to register two external font .TTF files: HamletOrNot.ttf (74 KB) MorrisRoman-Black.ttf (67 KB) Before creating the Font() objects, I record with the following commands: /* Set full path of font */ String path = filesPath + fileName; /* Read file */ Resource resource = applicationContext.getResource( path ); File fontFile = resource.getFile(); /* Load font */ GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, fontFile )); Then I create the