X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=lL1/TrvaKJ+GhEkIgHm3++j0bf/Jz9Kq29SMUCxduPg=; b=jOgB7rEoIi09ciMuW9JBDLiD5BSz7RAoRYHsHE+9NBWcFbWq5OPC/bnkv8f8JBreGz gQXTE6/D57TVkYoeqLxtTM6mOx1ul1bgS5BWYzKz7OZsjDgkgqR2XOlEk0cUgvr/A7g1 H4jR4gNZDJGYv0OUQPXMKH7uR6JKu0kehFssy/+Q/bxfm9cBHDhg56igbVbiXgE9BdnT BMxCTF8yVcSyZpCcpQ45xvtlwXo9FD2k7j2g1rBG+lKQknAQCY2DMS9uaXnbSyFmGhpt VnmbWPU+qdMNYQ8d5zNjQKbWDkRAICSBBkdyxYITVAa0o20e88FdbECbJm4Py0tjB8EH SIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=lL1/TrvaKJ+GhEkIgHm3++j0bf/Jz9Kq29SMUCxduPg=; b=H9Zw1N9DQgiV7kySzcALuPDZQ7+6W4UNMSQLeHL7O9hsrEn8YVwNZaPQwWrhkm8aLW bwBxAK+Mo0uOWBlqwLZdNDE9iRbYZ4+Uva0cemp+xfx2Mjwo//pvdDaClHBsY72fgiUq XpzRS/Y51OD6pi+BltLFKfu3Ebhxbz2XgdLE5uCb1gGRjhRGfCa0mKma6nBENu58DMra S/GDDwWFye5PiWh2EFO605BSmVMi4wfV0NXCDyvpKXKJrjn8MENx4qi+3DcCSI3Bj7T+ X1vtLtyK1+M3xEdiidDOwL5F9AQq443WceiMA4brw5whQrzolhSY92vVyQU2R5QMRmW8 ceuQ== X-Gm-Message-State: AOUpUlGQDaibcf3+8vvMdmaqhBsY0RBPMsbmosHSiWFaAVHX98CHfqVd Nr0d7jwlG9+KEl9qIf0XOfAKtAlliF3cdXIZKEphXw== X-Google-Smtp-Source: AAOMgpdcmnGIz14XaOys9P/GcHSEaQxy1XfNojVvQGfxMGKrjZf3gdLecTIUNt2NpD47k0nbcj48kszJakHpAbTs9yc= X-Received: by 2002:a19:e4c1:: with SMTP id x62-v6mr5320873lfi.76.1531495788631; Fri, 13 Jul 2018 08:29:48 -0700 (PDT) MIME-Version: 1.0 References: <20180702125528 DOT D32CF81F76FE AT turkos DOT aspodata DOT se> <20180712172330 DOT 33B1B8420410 AT turkos DOT aspodata DOT se> <20180712184028 DOT 48C668420410 AT turkos DOT aspodata DOT se> In-Reply-To: <20180712184028.48C668420410@turkos.aspodata.se> From: "Sergey Stepanov (no DOT such DOT process AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Fri, 13 Jul 2018 20:29:36 +0500 Message-ID: Subject: Re: [geda-user] adventures using arrows (for documentation), or cross my lines To: geda-user AT delorie DOT com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w6DFTp2J005964 Reply-To: geda-user AT delorie DOT com Hello, Karl > That arrow could be done right there in the sch-file, like You are perfectly right, this is it: H 3 0 1 0 -1 -1 1 -1 -1 -1 -1 -1 4 M 220,132 C 205,115 205,85 220,68 L 100,100 z But still: - thick line overwrites sharp end of arrow - every editing mistake makes this arrow broken - gEDA is lack of precise editing of symbol elements, like rotating by arbitrary (or at least, 30^o, 45^o) angle or shifting, or scaling, etc. So one have to write some scripts to do these things. The solution for my code (and to this ^^^) is to not draw arrow's line from the tip, but from the opposite side from the arrow triangle, like I do in this horizontal arrow from (0,0) to (5,0) with tip at (0,0): // Arrow cairo_move_to(cr, to_device_x(0.0), to_device_y(0.0)); cairo_arc(cr, to_device_x(3.8038), to_device_y(0.0), to_device(1.1368), to_radians(135.), to_radians(135.+90.)); cairo_close_path(cr); cairo_fill(cr); // Bar cairo_move_to(cr, to_device_x(2.667), to_device_y(0.0)); cairo_line_to(cr, to_device_x(5.0), to_device_y(0.0)); cairo_set_line_width(cr, to_device(0.25)); cairo_stroke(cr); But this need some changes in line drawing in gedacairo, so I gave up. чт, 12 июл. 2018 г. в 23:47, : > > Sergey: > > Some times ago I tried to solve similar problem about arrows. > > The result is in the attached patch. It adds new "Line cap style" as > > Arrow. The result can be seen at http://tinypic.com/r/b4htnl/9 . > > The provided code is quick and dirty, arrow length is hardcoded, pdf > > export problems, and so on, and so forth.. :-( > > > > So, you can do everything you want with it. It is applied to the > > latest git sources. > > That arrow could be done right there in the sch-file, like > H ... > M ... > A ... > L ... > z > > with the right values, except that your patch handles the rotation, > which is very nice. You still have the problem of making the tip be > where it should instead of going too far. > > Regards, > /Karl Hammar > > ----------------------------------------------------------------------- > Aspö Data > Lilla Aspö 148 > S-742 94 Östhammar > Sweden > +46 173 140 57 > >