antialiasing

how to make JTextPane paint anti-aliased font?

≯℡__Kan透↙ 提交于 2019-11-28 12:58:13
in the a swing app i'm rendering text with a custom JComponent , using Graphics.drawString() . here is a sample: aa text http://img525.imageshack.us/img525/4928/drawstringsample.jpg in that same app, i'm rendering text using a JTextPane . here is a sample: alt text http://img28.imageshack.us/img28/1134/jtextpanesample.jpg can you notice how the lower sample is a little 'smudged'? well, i can't figure out how to make it look like the upper sample. thanks, asaf :-) update: System.setProperty("awt.useSystemAAFontSettings","false") and "lcd" too aren't working. ((Graphics2D)g).setRenderingHint

Dynamically turn on/off antialiasing and shadows in WebGLRenderer

血红的双手。 提交于 2019-11-28 12:13:18
问题 How can I dynamically turn on and off antialiasing and shadows in WebGLRenderer? Simply changing the properties of anti-aliasing and shadowMapEnable does not work. I looked in the source and found a method updateShadowMap () but it was removed in release 69. UPDATE: OK, the answer to the second half of the question I found here https://github.com/mrdoob/three.js/issues/2466 As a result the following code works fine: renderer.shadowMapEnabled = false; for(var i in tiles.children) tiles

Is there an antialiasing method for Python PIL?

拜拜、爱过 提交于 2019-11-28 10:57:49
For lines and ellipses in PIL, the images are rough. I found antialiasing only in resize and thumbnail. Is there any way to do antialiasing when drawing a line or ellipse? The only way to do it natively is with supersampling. Render your image at a multiple of the size you require, then resize it with filter=Image.ANTIALIAS . aggdraw ( http://effbot.org/zone/aggdraw-index.htm ) may be something you're interested in. The aggdraw module implements the basic WCK 2D Drawing Interface on top of the AGG library. This library provides high-quality drawing, with anti-aliasing and alpha compositing,

Drawing line less than one pixel thick requires anti-aliasing in Android 4.2

僤鯓⒐⒋嵵緔 提交于 2019-11-28 10:04:32
问题 I'm trying to draw a very thin line (less than one pixel thick) in android. I'm using Paint blackThin = new Paint(); blackThin.setStrokeWidth(0.1f); blackThin.setColor(Color.BLACK); to initialize the paint object. This works fine in Android 2.2, but when I try it in 4.2 (also 4.1, I think - I tested that one briefly - I haven't tested any other versions other that 2.2, 4.1.2 and 4.2) the lines won't show up when I draw them. To make them show up in 4.2, it seems like I have to set the anti

Does CSS support text anti-aliasing such as “crisp, sharp etc” yet?

孤者浪人 提交于 2019-11-28 09:46:45
I have some text in Photoshop & it's set to "crisp". When I put it on my site it doesn't quite look the same. Does anything exist in CSS yet that I can use to make it crisp? Or not? Or do you have any suggestions to achieve a similar effect? Not only is it not possible, but different browsers on the market enforce different antialiasing settings, meaning that you can't get consistent results, even if they are not what you want. For a good article on how the various browsers deal with font rendering, I'd suggest reading this: http://blog.typekit.com/2010/10/21/type-rendering-web-browsers/ this

iPhone: CALayer + rotate in 3D + antialias?

青春壹個敷衍的年華 提交于 2019-11-28 08:44:13
An iPhone SDK question: I'm drawing a UIImageView on the screen. I've rotated it in 3D and provided a bit of perspective, so the image looks like it's pointing into the screen at an angle. That all works fine. Now the problem is the edges of the resulting picture don't seem to be antialiased at all. Anybody know how to make it so? Essentially, I'm implementing my own version of CoverFlow (yeah yeah, design patent blah blah) using quartz 3d transformations to do everything. It works fine, except that each cover isn't antialiased, and Apples version is. I've tried messing around with the

Disable Cleartype (text anti-aliasing) in IE9

拟墨画扇 提交于 2019-11-28 06:56:16
It's well documented (e.g. here ) that IE9 ignores the OS-wide settings for font smoothing (aka anti-aliasing). Even if font-smoothing and ClearType are disabled in Windows, IE still shows anti-aliased fonts, which some users struggle to read, especially at small font sizes. How can I disable all font anti-aliasing (ClearType or otherwise) in IE9? More details: Our company builds a web application which uses a lot of small fonts. With the release of IE9, some of our users have complained that IE9's default anti-aliasing makes our small fonts fuzzy or blurry. So we need to help our users who've

Faking Subpixel Antialiasing on Text with Core Animation

醉酒当歌 提交于 2019-11-28 04:41:21
For anyone working on a project with Core Animation layer-backed views, it's unfortunately obvious that subpixel antialiasing (text smoothing) is disabled for text not rendered on a pre-set opaque background. Now, for people who are able to set opaque backgrounds for their text (either with a setBackgroundColor: call or the equivalent setting in Interface Builder), this issue doesn't present too much of a problem. For others, though, who have absolutely no way to work around it, it's not something one can ignore. I've been looking online for well over two days for a solution, and nothing

Anti-aliasing in R graphics under Windows (as per Mac)

可紊 提交于 2019-11-28 04:31:32
is there a way to plot anti-aliased graphics from the Windows version of R? As you can see from the two versions below the Mac version of R prints graphics anti aliased.... ....whereas while the Windows version anti-aliases text, it does not anti-alias the actual graphic, as can be seen from the riser points, and the grid: Here is the code by the way: library(scatterplot3d) attach(mtcars) s3d <-scatterplot3d(wt,disp,mpg, pch=16, highlight.3d=TRUE, type="h", main="3D Scatterplot") fit <- lm(mpg ~ wt+disp) s3d$plane3d(fit) I need the highest quality possible, for web page publication. I am

PHP Imagick PDF conversion Text aliasing

送分小仙女□ 提交于 2019-11-28 02:24:49
I'm having some troubles converting PDF files to JPEG with Imagick in PHP. After a lot of research, i'm able to convert CMYK pdf to RGB jpg without weird color conversion… but now, my last issue : the text is completely aliased ! The text from the original PDF file is not vectorized. An example : Here is the code : $imagick = new Imagick(); $imagick->setResolution(150,150); $imagick->readImage('file.pdf'); //CMYK PROFILE $icc = file_get_contents('USWebCoatedSWOP.icc'); $imagick->profileImage('icc', $icc); $imagick->setImageColorspace(imagick::COLORSPACE_CMYK); //RGB PROFILE $icc = file_get