antialiasing

Subpixel anti-aliased text on HTML5's canvas element

最后都变了- 提交于 2019-11-26 15:37:39
问题 I'm a bit confused with the way the canvas element anti-aliases text and am hoping you all can help. In the following screenshot the top "Quick Brown Fox" is an H1 element and the bottom one is a canvas element with text rendered on it. On the bottom you can see both "F"s placed side by side and zoomed in. Notice how the H1 element blends better with the background: Here's the code I'm using to render the canvas text: var canvas = document.getElementById('canvas'); if (canvas.getContext){ var

@font-face anti-aliasing on windows and mac

点点圈 提交于 2019-11-26 15:13:44
I've used http://www.fontsquirrel.com/ to create a @font-face kit. It works fine, but the result on windows is different from the result on mac. On windows the font seems to have a wrong anti-aliasing: this is the result on Mac with FF, Chrome or Safari (all updated to last version). this is the result on Windows with FF or Chrome. As you can see, the result is not the same. On Windows the font is thicker and rougher. How can I solve this? This just looks like the normal ugly way fonts are rendered in WinXP. Some (IMO: misguided) people even prefer it. To get anti-aliasing for desktop fonts in

Any quick and dirty anti-aliasing techniques for a rotated UIImageView?

六月ゝ 毕业季﹏ 提交于 2019-11-26 15:08:32
I've got a UIImageView (full frame and rectangular) that i'm rotating with a CGAffineTransform. The UIImage of the UIImageView fills the entire frame. When the image is rotated and drawn the edges appear noticeably jagged. Is there anything I can do to make it look better? It's clearly not being anti-aliased with the background. Remember to set the appropriate anti-alias options: CGContextSetAllowsAntialiasing(theContext, true); CGContextSetShouldAntialias(theContext, true); Johan Kool The edges of CoreAnimation layers aren't antialiased by default on iOS. However, there is a key that you can

Java Text on Image

僤鯓⒐⒋嵵緔 提交于 2019-11-26 13:50:39
I am loading an image in bufferedimage and then writing some text on it .After I add text it makes image blurry and text distorted. I have TEXT ANTIALIASING ON . It can be seen as attached. You should be able to control the text quality with the rendering hints that are shown in the other responses. I know that it works because I have done it a lot, so I think it must be something else that causes the quality degradation in this case. How do you check the image quality? Do you paint the generated BufferedImage directly into a screen graphics in your java application or do you save to disk, i.e

problematic Moire pattern in image produced with gnuplot pm3d and pdf output

社会主义新天地 提交于 2019-11-26 11:38:15
问题 I\'m plotting data using the command files discussed here: gnuplot contour line color: set style line and set linetype not working I want to provide different output options. PNG works well, as does the wxt terminal, however, these have fixed resolution, e.g. when I \"zoom in\" on the plot it gets grainier. If I use pdf or pdfcairo for the terminal, the resulting file has a Moire pattern. The region in the image over which the Moire pattern is observed can be reduced by using increasing

How to force anti-aliasing in JavaFX fonts?

て烟熏妆下的殇ゞ 提交于 2019-11-26 11:02:16
问题 While testing the GUI of my JavaFX 8 application, I noticed that some labels are not displaying anti-aliased text. After some googling and struggling, I found out a very annoying thing that is happening. The anti-aliasing is being applied only on labels which font size is greater than 80px. Here is an example comparing JavaFX and Swing applications with AA applied: Sample code: https://gist.github.com/anonymous/be60bb89181376ff12aa Is there a way to force the AA in all font sizes? Does this

Webfont Smoothing and Antialiasing in Firefox and Opera

心不动则不痛 提交于 2019-11-26 09:15:50
问题 I have some custom made webfonts embedded on my site and I use stuff like //-webkit-text-stroke-width: .05px; //-webkit-text-stroke-color: white; -webkit-font-smoothing: antialiased; to style my rendering output. This works just fine in Safari and Chrome. I get way sharper edges and thinner lines. Is there any way of doing stuff like that in Firefox? Or Opera? 回答1: As Opera is powered by Blink since Version 15.0 -webkit-font-smoothing: antialiased does also work on Opera. Firefox has finally

@font-face anti-aliasing on windows and mac

允我心安 提交于 2019-11-26 08:52:52
问题 I\'ve used http://www.fontsquirrel.com/ to create a @font-face kit. It works fine, but the result on windows is different from the result on mac. On windows the font seems to have a wrong anti-aliasing: this is the result on Mac with FF, Chrome or Safari (all updated to last version). this is the result on Windows with FF or Chrome. As you can see, the result is not the same. On Windows the font is thicker and rougher. How can I solve this? 回答1: This just looks like the normal ugly way fonts

How do you enable anti aliasing in arbitrary Java apps?

被刻印的时光 ゝ 提交于 2019-11-26 07:57:36
问题 Many Java Apps don\'t use anti-aliased fonts by default, despite the capability of Swing to provide them. How can you coerce an arbitrary java application to use AA fonts? (both for applications I\'m running, and applications I\'m developing) 回答1: If you have access to the source, you can do this in the main method: // enable anti-aliased text: System.setProperty("awt.useSystemAAFontSettings","on"); or, (and if you do not have access to the source, or if this is easier) you can simply pass

How to draw a decent looking Circle in Java

五迷三道 提交于 2019-11-26 07:47:09
问题 I have tried using the method drawOval with equal height and width but as the diameter increases the circle becomes worse looking. What can I do to have a decent looking circle no matter the size. How would I implement anti-aliasing in java or some other method. 回答1: As it turns out, Java2D (which I'm assuming is what you're using) is already pretty good at this! There's a decent tutorial here: http://www.javaworld.com/javaworld/jw-08-1998/jw-08-media.html The important line is: graphics