fonts

Why does Java Swing html font rendering look so crappy?

老子叫甜甜 提交于 2020-01-14 03:15:18
问题 To display a complex multi-line label with multiple styling I use Swing's html rendering capabilities and end up with really crappy font rendering. I have tried to explicitly set the font family - infoLabel.setText("<html><span style='font-family:Tahoma;'>My text.. But compared to non-HTML text, the JLabel with HTML text always renders very ugly, looks like ant-aliasing is not happening. I tried font smooth CSS property : <html><span style="font-family:Tahoma;font-smooth:always;"> But the

PDFsharp on Azure with Custom Fonts

时光毁灭记忆、已成空白 提交于 2020-01-14 03:08:13
问题 I am using a webapp on azure to create a PDF using PDFsharp 1.32. As it is a Azure webapp I cannot install fonts. Therefore I am using the following with embedded font options: var globalFontCollection = XPrivateFontCollection.Global; _fontBytes = File.ReadAllBytes(_pathToFont); globalFontCollection.AddFont(_fontBytes, _fontName); However this does not work. There is no error just acts as if the font is not known and falls back to the default. If I install the font it works so I know the rest

Use icon fonts in xpages

时光总嘲笑我的痴心妄想 提交于 2020-01-14 02:31:23
问题 I want to use icon (awesome) fonts in my xpage. I downloaded it and put them into my webContent folder (as all my additional stuff. e.g. bootstrap). I modified the awesome.css as followed. @font-face { font-family: "FontAwesome"; src: url('/font/fontawesome-webfont.eot'); src: url('/font/fontawesome-webfont.eot?#iefix') format('eot'); src: url('/font/fontawesome-webfont.woff') format('woff'); src: url('/font/fontawesome-webfont.ttf') format('truetype'); src: url('/font/fontawesome-webfont.svg

ocr'ing application text (not scanned, NOT captchas)

萝らか妹 提交于 2020-01-13 19:37:28
问题 I'd like to interface an application by reading the text it displays. I've had success in some applications when windows isn't doing any font smoothing by typing in a phrase manually, rendering it in all windows fonts, and finding a match - from there I can map each letter image to a letter by generating all letters in the font. This won't work if any font smoothing is being done, though, either by Windows or by the application. What's the state of the art like in OCRing computer-generated

ocr'ing application text (not scanned, NOT captchas)

假装没事ソ 提交于 2020-01-13 19:37:27
问题 I'd like to interface an application by reading the text it displays. I've had success in some applications when windows isn't doing any font smoothing by typing in a phrase manually, rendering it in all windows fonts, and finding a match - from there I can map each letter image to a letter by generating all letters in the font. This won't work if any font smoothing is being done, though, either by Windows or by the application. What's the state of the art like in OCRing computer-generated

Why is vertical alignment afftected by font-weight with Crimson Text font?

依然范特西╮ 提交于 2020-01-13 19:27:11
问题 Recently I have been playing around with the anchor tags' css of the page http://nate.fm/articles/ If you assign border around the link Light or Pro-Life vs Pro-Birth and change their font-weight to more than 500 then suddenly the vertical alignment changes from middle to top. Below I have added images showing this: Font Weight 700: Font Weight 500: More to the surprise, this bug disappears for any other font family than Crimson Text . I tried to replicate the bug on local but failed. Could

iTextSharp embed subset fonts in existing PDF

£可爱£侵袭症+ 提交于 2020-01-13 17:04:10
问题 We use an old reporting software to create PDFs, but it is unable to embed the used fonts in the file. Now I am trying to use iTextSharp to embed all (non-embedded) fonts in an existing PDF based on these examples EmbedFontPostFacto, ListUsedFonts and other information from other similar questions. Like in the first example I create a fontfile for each font and then add it to the font object (PdfDictionary) or rather to the font descriptor. // the font file byte[] fontfile = null; using

DoppioOne-Regular.ttf Font does no support ft character in android

喜欢而已 提交于 2020-01-13 13:47:29
问题 I'm working on project in which I using DoppioOne-Regular.ttf font for typeface, but the problem is that when String contains 'ft' character then it look like pencil symbol. In following image I have a string "Ha´en fed aften!" but ft in the string look like pencil. Give me the soluion to recover from this isssue. 回答1: Can you please try this file: https://github.com/w0ng/googlefontdirectory/blob/master/fonts/DoppioOne-Regular.ttf?raw=true When I tried it i got: And please can you attach the

DoppioOne-Regular.ttf Font does no support ft character in android

心不动则不痛 提交于 2020-01-13 13:47:08
问题 I'm working on project in which I using DoppioOne-Regular.ttf font for typeface, but the problem is that when String contains 'ft' character then it look like pencil symbol. In following image I have a string "Ha´en fed aften!" but ft in the string look like pencil. Give me the soluion to recover from this isssue. 回答1: Can you please try this file: https://github.com/w0ng/googlefontdirectory/blob/master/fonts/DoppioOne-Regular.ttf?raw=true When I tried it i got: And please can you attach the

How to convert Symbol font to standard utf8 HTML entity

耗尽温柔 提交于 2020-01-13 11:33:10
问题 Is there any way to convert unicode Symbol font in a html stream to its equivalent utf8 entity ? ie. 0xf067 (  as unicode Symbol html entity) to greek small letter gamma (U+03B3 aka γ in standard utf8) 回答1: Finally I managed to do it using the Symbol to unicode map at http://www.stat.auckland.ac.nz/~paul/R/CM/AdobeSym.html then converting from unicode to utf8 with iconv (as unicode <> utf8) function symbol_sanitize_string($string) { return preg_replace_callback('/([\x{f020}-\x{f0fe}]{1})/u',