delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/05/29/05:50:30

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] centered text not centered
In-reply-to: <20180529033215.5pygvmuzntritay3@localhost.localdomain>
References: <20180526224203 DOT 7C64380F49E9 AT turkos DOT aspodata DOT se> <20180527113940 DOT pp4k7nk6bfbjlit5 AT localhost DOT localdomain> <20180527131507 DOT 38F0E80F49EB AT turkos DOT aspodata DOT se> <20180527172548 DOT 3cva4dogk5ulvhmr AT localhost DOT localdomain> <20180527184904 DOT 6EA6C80F49EB AT turkos DOT aspodata DOT se> <20180529033215 DOT 5pygvmuzntritay3 AT localhost DOT localdomain>
Comments: In-reply-to "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Tue, 29 May 2018 06:32:15 +0300."
Mime-Version: 1.0
Message-Id: <20180529094849.6B8D880F49F9@turkos.aspodata.se>
Date: Tue, 29 May 2018 11:48:49 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Vladimir:
> On Sun, May 27, 2018 at 08:49:04PM +0200, karl AT aspodata DOT se wrote:
> > Vladimir:
...
> > > Well, I see the issue in your files, though cannot reproduce it on
> > > my system. You seem to have a bit more recent cairo version
> > > (1.14.12 vs 1.14.8 on my machine). Could it be the bug in the
> > > cairo library?
...
> > > [export]
> > > font=OpenGost Type B TT Italic
> > Yes, the problem went away (though I prefer the non Italic font).
> > Though I don't see any font settings for lepton-schematic in:
> >  https://github.com/lepton-eda/lepton-eda/wiki/Configuration-Settings
> > Shall we debug this or just use this walkaround and hope it was a bug
> > in cairo that eventually will be fixed ?
> I don't know how to debug this. The issue may be in cairo itself
> or in the font it uses for rendering. Some pdf tools would be
> needed to get the info about the font and positions of strings in
> your file and compare it with such info in another file,
> e.g. produced by different version of cairo. Would you want to go
> that way?

Testing with
 cairo-1.14.12
 cairo-1.14.10
 cairo-1.14.8
I see that .10 and .12 is the same and .8 looks correct,
so my guess is that this is in libcairo and not in geda nor lepton.

Can anyone running with libcairo 1.14.8 try .10 or .12 to verify this ?

///

$ diff cairo-1.14.12.ps cairo-1.14.10.ps 
2,3c2,3
< %%Creator: cairo 1.14.12 (http://cairographics.org)
< %%CreationDate: Tue May 29 11:24:54 2018
---
> %%Creator: cairo 1.14.10 (http://cairographics.org)
> %%CreationDate: Tue May 29 11:27:47 2018
$ diff -u cairo-1.14.8.ps cairo-1.14.10.ps | head -30
--- cairo-1.14.8.ps     2018-05-29 11:32:21.979443709 +0200
+++ cairo-1.14.10.ps    2018-05-29 11:27:47.915255840 +0200
@@ -1,6 +1,6 @@
 %!PS-Adobe-3.0
-%%Creator: cairo 1.14.8 (http://cairographics.org)
-%%CreationDate: Tue May 29 11:32:21 2018
+%%Creator: cairo 1.14.10 (http://cairographics.org)
+%%CreationDate: Tue May 29 11:27:47 2018
 %%Pages: 1
 %%DocumentData: Clean7Bit
 %%LanguageLevel: 2
@@ -62,6 +62,9 @@
 /g { setgray } bind def
 /rg { setrgbcolor } bind def
 /d1 { setcachedevice } bind def
+/cairo_flush_ascii85_file { cairo_ascii85_file status { cairo_ascii85_file flushfile } if } def
+/cairo_image { image cairo_flush_ascii85_file } def
+/cairo_imagemask { imagemask cairo_flush_ascii85_file } def
 /cairo_set_page_size {
   % Change paper size, but only if different from previous paper size otherwise
   % duplex fails. PLRM specifies a tolerance of 5 pts when matching paper size
@@ -899,9 +902,9 @@
 0 31.922852 -31.922852 0 86.953125 400.542108 Tm
 /f-0-0 1 Tf
 (U?)Tj
-0 19.15332 -19.15332 0 116.300781 280.358514 Tm
+0 19.15332 -19.15332 0 116.300781 241.479608 Tm
 [(2A)52( step-down switching regulator)]TJ
-0 31.922852 -31.922852 0 149.71875 342.006951 Tm
+0 31.922852 -31.922852 0 149.71875 342.003045 Tm
$

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019