From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#10399: [PATCH] Document win32 font backends Date: Sat, 31 Dec 2011 03:04:42 -0800 Message-ID: <4EFEEC4A.2010502@dancol.org> References: <24726464e3220fa8654e52357dfd56ab2d5bdb43.1325166907.git.dancol@dancol.org> <83pqf7uxhp.fsf@gnu.org> <4EFCA060.9000002@dancol.org> <83vcoxrouh.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig32490F89B3E8D0BE99CE6E03" X-Trace: dough.gmane.org 1325329512 21025 80.91.229.12 (31 Dec 2011 11:05:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2011 11:05:12 +0000 (UTC) Cc: lekktu@gmail.com, 10399@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 31 12:05:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RgwkN-00058N-8B for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2011 12:05:07 +0100 Original-Received: from localhost ([::1]:46280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgwkM-00023Q-9Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2011 06:05:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgwkI-00021s-Vz for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2011 06:05:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgwkH-0003j2-P9 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2011 06:05:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgwkH-0003iy-KD for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2011 06:05:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RgwnB-0003za-VJ for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2011 06:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2011 11:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10399 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10399-submit@debbugs.gnu.org id=B10399.132532967615335 (code B ref 10399); Sat, 31 Dec 2011 11:08:01 +0000 Original-Received: (at 10399) by debbugs.gnu.org; 31 Dec 2011 11:07:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgwn5-0003zI-UC for submit@debbugs.gnu.org; Sat, 31 Dec 2011 06:07:56 -0500 Original-Received: from dancol.org ([96.126.100.184]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Rgwn4-0003zA-8L for 10399@debbugs.gnu.org; Sat, 31 Dec 2011 06:07:55 -0500 Original-Received: from c-24-18-179-193.hsd1.wa.comcast.net ([24.18.179.193] helo=[192.168.1.2]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Rgwk7-0003RN-P8; Sat, 31 Dec 2011 03:04:51 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <83vcoxrouh.fsf@gnu.org> X-Enigmail-Version: 1.3.4 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 31 Dec 2011 06:08:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55329 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig32490F89B3E8D0BE99CE6E03 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/31/11 2:56 AM, Eli Zaretskii wrote: >> Date: Thu, 29 Dec 2011 09:16:16 -0800 >> From: Daniel Colascione >> CC: Juanma Barranquero , 10399@debbugs.gnu.org >> >> Since we're on the subject of Windows font backends: is it worth >> creating a DirectWrite backend? It does a better job of inter-characte= r >> spacing and rendering at small sizes than Uniscribe does. >> >> https://bugzilla.mozilla.org/show_bug.cgi?id=3D517642 >> >> https://blog.mozilla.com/nattokirai/2009/10/22/better-postscript-cff-f= ont-rendering-with-directwrite/ >=20 > Looks like it has only C++ bindings? One of the comments on MSDN > says: >=20 > DirectDraw header file is not compatible with C programming language > and can only be included in C++ code. However, C-style redeclaration > of contents in this header file alone (excluding other header files i= t > includes), will succeed in resolving the issue. DirectWrite is COM, and all COM facilities can be used by plain C. The C compatibility issue arises from a problem with the header for the COM interface produced by the IDL compiler (probably, nobody tried to actually use DirectWrite from C before shipping.) This problem doesn't prevent our using DirectWrite from C: as the MSDN comment indicates, the declarations just need to be extracted and rephrased as standard C. > Also, I see no dwrite.h header in the MinGW runtime and w32api > distributions, and no lib*.a import libraries for dwrite.dll. Am I > missing something? No. Either these packages would need to be updated to include DirectWrite or we'd need to just include declarations for the appropriate functions and interfaces ourselves. --------------enig32490F89B3E8D0BE99CE6E03 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk7+7EwACgkQ17c2LVA10Vtl3ACgresLVgN3/q6I1quITyDUqdAl rVcAn3IOjcpXXFV6JzOvjzCtas8gD3Bw =gEt7 -----END PGP SIGNATURE----- --------------enig32490F89B3E8D0BE99CE6E03--