embedded-fonts

Silverlight WriteableBitmap not converting custom font correctly

混江龙づ霸主 提交于 2019-12-14 02:33:09
问题 We use custom fonts to represent road signs and shapes that we plot on a graph. Initially I plotted everything to a canvas, which worked fine, but was slow to scroll horizontally. Then I fixed the scrolling issue by converting the canvas to a image using the WriteableBitmap, like this: #if SILVERLIGHT ImageSource ConvertCanvas(Canvas canvas) { WriteableBitmap Source = new WriteableBitmap(canvas, /* transform = */ null); Source.Invalidate(); return Source; } #endif This conversion works fine

Why so big difference in sizes of almost identical documents

百般思念 提交于 2019-12-11 18:05:32
问题 Have two pdfs, first created with libharu and second created with PDF::API2. If not mention to coordinates then content is the same. But first pdf oversize second by four times. Only one distinction what i found that is type of fonts embedding showed in document properties fonts tab. In first Verdana (Embedded Subset) Type: TrueType Encoding: Custom In second Verdana Type: TrueType Encoding: Custom Actual Font: Verdana Actual font Type: TrueType How to deal with that embedded subset? 回答1:

@font-face rendering in Windows 7

﹥>﹥吖頭↗ 提交于 2019-12-11 16:56:50
问题 I use @font-face to enable custom fonts. It works in Firefox, IE, Safari and in Chrome on Mac. On Windows 7 with Chrome the text at 10px look green not black or grey! ... after more testing: same problem with Firefox (Windows) and Safari (Windows) Maybe it has something to do with the Windows ClearType rendering. But why it works in Internet Explorer?? Direct link to the page: http://www.light-work.de/chrome.html It´s really strange! The problem occurs only with 10px fontsize (the size that I

Limit characterset of a Webfont?

*爱你&永不变心* 提交于 2019-12-11 11:04:29
问题 I wonder if it is possible to limit the characterset of an embedded webfont? E.g. "Typekit" has an option in its "Kit Editor" where you can choose between All Characters or Default . However in my case I don't use Typekit but a normal embedded webfont. The fontfiles are rather big due to the large amounts of characters. Is there some "meta-tag" or "attribute" for the @font-face call to limit the charcterset to let's say "Latin-1"? Thank you in advance, Matt 回答1: @font-face simply tells the

@font-face not working even after trying everything I could think of

ε祈祈猫儿з 提交于 2019-12-11 04:39:52
问题 I really need help with @font-face code. IT doesn't seem to see my font file. I tried changing the path to anything I could think of, made new folders, renamed existing ones, put the font file in my root etc. I'm testing in Firefox and Chrome. Here are the codes that I tried in my CSS: src: url(http://thefalljourneyindia.iblogger.org/wp-content/themes/thefalltheme/images/Univers.ttf); src: url(thefalljourneyindia.iblogger.org/wp-content/themes/thefalltheme/images/Univers.ttf); src: url(http:/

/Differences dictionary for encode parsing issue in PDF

僤鯓⒐⒋嵵緔 提交于 2019-12-10 18:41:42
问题 Type1 font /Differences encoding uses strings in mapping of values for example 1 character is encoded to 'one'. It is used for numbers and special characters only. What is the standard way to use these encoding? How should I decode string from PDF which uses such encoding? Link for the file: http://www.filedropper.com/open 回答1: Here's the /Differences array in your file (and honestly, you should have just posted this and not a link a skeevy download page): /Differences [ 24 /breve/caron

How to embed a custom bitmap font into website using CSS

做~自己de王妃 提交于 2019-12-10 18:14:55
问题 How can I embed a custom bitmap font into my website using CSS? I've tried the following but it just reverts to the fallback font: @font-face { font-family:'AgendaSemibold'; src: url('Agenda-Semibold.bmap') format('bitmap'); } I'm trying to call it using the usual way: font-family: 'AgendaSemibold', Times New Roman, Sans-Serif; The font has been uploaded to my webspace but it's just reverting to Times. 来源: https://stackoverflow.com/questions/5354935/how-to-embed-a-custom-bitmap-font-into

Embedding fonts in iPad

别说谁变了你拦得住时间么 提交于 2019-12-08 02:39:36
问题 I am trying to embed Google fonts in a WebView in iPad. If I put this in the head all works fine: <link href='http://fonts.googleapis.com/css?family=Monofett' rel='stylesheet' type='text/css'> The html is local then I need to copy the CSS and the fonts in my iPad. When I do this changes the fonts doesn't work: html: <link href='fonts/fonts.css' rel='stylesheet' type='text/css'> fonts/fonst.css: @font-face { font-family: 'Monofett'; font-style: normal; font-weight: normal; src: local('Monofett

Embedding fonts in iPad

风流意气都作罢 提交于 2019-12-06 08:34:31
I am trying to embed Google fonts in a WebView in iPad. If I put this in the head all works fine: <link href='http://fonts.googleapis.com/css?family=Monofett' rel='stylesheet' type='text/css'> The html is local then I need to copy the CSS and the fonts in my iPad. When I do this changes the fonts doesn't work: html: <link href='fonts/fonts.css' rel='stylesheet' type='text/css'> fonts/fonst.css: @font-face { font-family: 'Monofett'; font-style: normal; font-weight: normal; src: local('Monofett'), url('http://themes.googleusercontent.com/static/fonts/monofett/v1/94n9d8-lEEaOz-Sn4plHGPesZW2xOQ

How to calculate descender height in javascript?

我只是一个虾纸丫 提交于 2019-12-04 01:46:50
问题 My css has defined the font-family to cascade depending on what fonts are available: .myfont { text-transform: uppercase; font-family: Calibri, Arial, sans-serif; padding: 2em; background-color: red; } and, depending on what font is rendered, I would like to adjust the padding to appropriately center the all-caps text in the <sarcasm> beautiful </sarcasm> red background. Is there a good way to calculate the size of the font descender so that I can adjust the bottom padding accordingly? Bonus