[cairo] Disabling antialiased shape drawing
Carl Worth
cworth at redhat.com
Mon Aug 8 15:03:52 PDT 2005
On Mon, 08 Aug 2005 17:52:52 -0400, Owen Taylor wrote:
> 1) I'm not sure if it's what people want - turning off text antialiasing
> isn't necessary for full-scene antialiasing without seams
> or compatibility with existing APIs.
Neither of those are completely clear in my mind. Resampling
antialiased text may not be entirely useful either. And compatibility
with existing APIs might include non-antialiased text as well, right?
Regardless, cairo_save/restore can help here too.
> 2) Turning antialiasing off this way, then turning text antialiasing
> back on doesn't work since you no longer respect user preferences.
This can work as long as "turning text antialiasing back on" means:
cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
But, yes, there wouldn't be a single, global and persistent way to
say, "Use ANTIALIAS_NONE for shapes, and ANTIALIAS_DEFAULT for text".
But is that really that much different than, say, the source pattern?
A user might also want all text to be black, but we don't have a
global, persistent way to ask for that.
> 3) It makes font options pretty complicated - we have:
>
> - cairo_set_font_options()
> - The antialias setting
> - The font options from the surface
>
> All interacting (probably in that order of precedence)
Yes, that's the order. And yes, there are a lot of things <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Openicc] Introduction / Gutenprint
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:openicc%40lists.freedesktop.org?Subject=%5BOpenicc%5D%20Introduction%20/%20Gutenprint&In-Reply-To=4259ADAB.5000102%40gmx.de">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000203.html">
<LINK REL="Next" HREF="000207.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Openicc] Introduction / Gutenprint</H1>
<B>Bob Friesenhahn</B>
<A HREF="mailto:openicc%40lists.freedesktop.org?Subject=%5BOpenicc%5D%20Introduction%20/%20Gutenprint&In-Reply-To=4259ADAB.5000102%40gmx.de"
TITLE="[Openicc] Introduction / Gutenprint">bfriesen at simple.dallas.tx.us
</A><BR>
<I>Mon Apr 11 09:15:13 EST 2005</I>
<P><UL>
<LI>Previous message: <A HREF="000203.html">[Openicc] Introduction / Gutenprint
</A></li>
<LI>Next message: <A HREF="000207.html">[Openicc] Introduction / Gutenprint
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#201">[ date ]</a>
<a href="thread.html#201">[ thread ]</a>
<a href="subject.html#201">[ subject ]</a>
<a href="author.html#201">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Mon, 11 Apr 2005, Gerhard Fuernkranz wrote:
[ stuff removed ]
><i> That's a brief summary of my understanding of printing, but maybe others have
</I>><i> a completely different understanding.
</I>
This is how I prefer to think of printing as well. I tend to think of
printing as preparation of another format which may use a
(potentially) device independent description of the document. This is
what I think of as the "Adobe" model. With this model, the
application does not care if what it produces is processed for a
"dumb" device by another application on the same system, or is sent
over the network to a "smart" printer which does the remaining
processing.
The thinking of many is influenced by the Microsoft Windows GDI-based
printing model in which applications use operating system programming
interfaces to "draw" what they want the system to print. The
operating system then uses a driver to convert that description into a
binary blob of data targeted for a specific printer. With this
approach, the application accesses the printer by using an operating
system library and therefore does not directly prepare any formatted
data for the printer.
The advantage of the "Adobe" model is that it is more likely to
produce "portable" output which may be supplied to a variety of
printers and it is not tied to device drivers. The advantage of the
"Microsoft" model is that applications only need to know how to use
system drawing APIs (potentially simpler) and since since there is no
intermediate form, printing may be more efficient.
Bob
======================================
Bob Friesenhahn
<A HREF="http://lists.freedesktop.org/mailman/listinfo/openicc">bfriesen at simple.dallas.tx.us</A>, <A HREF="http://www.simplesystems.org/users/bfriesen/">http://www.simplesystems.org/users/bfriesen/</A>
GraphicsMagick Maintainer, <A HREF="http://www.GraphicsMagick.org/">http://www.GraphicsMagick.org/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000203.html">[Openicc] Introduction / Gutenprint
</A></li>
<LI>Next message: <A HREF="000207.html">[Openicc] Introduction / Gutenprint
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#201">[ date ]</a>
<a href="thread.html#201">[ thread ]</a>
<a href="subject.html#201">[ subject ]</a>
<a href="author.html#201">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.freedesktop.org/mailman/listinfo/openicc">More is.org; Tue, 09 Aug 2005 01:36:05 +0200
Message-ID: <42F7ECDE.9050201 at web.de>
Date: Tue, 09 Aug 2005 01:38:06 +0200
From: Christian Biesinger <cbiesinger at web.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.8b2) Gecko/20050524 Mnenhy/0.7.2.0
MIME-Version: 1.0
To: cairo at cairographics.org
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature";
micalg=sha1; boundary="------------ms020504060109060909020400"
Sender: cbiesinger at web.de
X-Sender: cbiesinger at web.de
Subject: [cairo] Wrong book id in cairo-docs.xml
X-BeenThere: cairo at cairographics.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: cairo mailing list <cairo.cairographics.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/cairo>,
<mailto:cairo-request at cairographics.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/cairo>
List-Post: <mailto:cairo at cairographics.org>
List-Help: <mailto:cairo-request at cairographics.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/cairo>,
<mailto:cairo-request at cairographics.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Aug 2005 23:36:07 -0000
This is a cryptographically signed message in MIME format.
--------------ms020504060109060909020400
Content-Type: multipart/mixed; boundary="------------010700090701070501040202"
This is a multi-part message in MIME format.
--------------010700090701070501040202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I noticed that cairo-docs.xml has "libglade" as book id. That seems
wrong to me :-) The attached patch fixes this.
-biesi
--------------010700090701070501040202
Content-Type: text/plain;
name="cairo-doc.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="cairo-doc.diff"
Index: doc/public/cairo-docs.xml
===================================================================
RCS file: /cvs/cairo/cairo/doc/public/cairo-docs.xml,v
retrieving revision 1.6
diff -p -u -6 -r1.6 cairo-docs.xml
--- doc/public/cairo-docs.xml 5 Aug 2005 17:40:32 -0000 1.6
+++ doc/public/cairo-docs.xml 8 Aug 2005 23:34:47 -0000
@@ -1,10 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-<book lang="en" id="libglade" xmlns:xi="http://www.w3.org/2003/XInclude">
+<book lang="en" id="cairo" xmlns:xi="http://www.w3.org/2003/XInclude">
<title>Cairo: A Vector Graphics Library</title>
<part>
<title>Tutorial</title>
</part>
<part>
<title>Reference</title>
--------------010700090701070501040202--
--------------ms020504060109060909020400
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO+TCC
A/8wggLnoAMCAQICBALofiUwDQYJKoZIhvcNAQEEBQAwgaAxCzAJBgNVBAYTAkRFMRIwEAYD
VQQKEwlXRUIuREUgQUcxFTATBgNVBAsTDFRydXN0IENlbnRlcjEaMBgGA1UEBxMRRC03NjIy
NyBLYXJsc3J1aGUxLTArBgNVBAMTJFdFQi5ERSBUcnVzdENlbnRlciBFTWFpbC1aZXJ0aWZp
a2F0ZTEbMBkGCSqGSIb3DQEJARYMdHJ1c3RAd2ViLmRlMB4XDTA0MDkyNTIyMTY0N1oXDTA1
MDkyNTIyMTY0N1owgYIxCzAJBgNVBAYTAkRFMRQwEgYDVQQIEwtEZXV0c2NobGFuZDEdMBsG
A1UEBxMUMjcwMCBXaWVuZXIgT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