From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115345 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thangalin via ntg-context Newsgroups: gmane.comp.tex.context Subject: SVG text clipping issue Date: Wed, 29 Jun 2022 11:52:59 -0700 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0736366604454749112==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thangalin To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 29 20:53:47 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6cos-0008c8-JJ for gctc-ntg-context-518@m.gmane-mx.org; Wed, 29 Jun 2022 20:53:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1412F6DE; Wed, 29 Jun 2022 20:53:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j5N1jeOvIvkG; Wed, 29 Jun 2022 20:53:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AEC93360762; Wed, 29 Jun 2022 20:53:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0706C360762 for ; Wed, 29 Jun 2022 20:53:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9q2HiDtkmglk for ; Wed, 29 Jun 2022 20:53:12 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.214.179; helo=mail-pl1-f179.google.com; envelope-from=thangalin@gmail.com; receiver= Original-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 9AFD136074A for ; Wed, 29 Jun 2022 20:53:12 +0200 (CEST) Original-Received: by mail-pl1-f179.google.com with SMTP id c4so14919148plc.8 for ; Wed, 29 Jun 2022 11:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=nurUw5DYbQLNPhICx5Qr6kyB2JDY/iLunTIG1WHgxnY=; b=MvzpGkQXcGXuxuOa5aXtqmA4PETsfoeYViuTLGcwqBE4OmCWOHROCA7RBI8PBh58le ++TZctEHIz3QvwT3QHPC2a9/4jz564zPNv+vHme23wFuZa/wHISRxllVbMP28H4+S6iZ Xq3HI3yHxhJt7l3WzBrnhs7iTafeEAW/dS+Y9aG92AhIP/Q90YjBHF4Y3agNOh4SAiik ErdgXXh1nx3GryQsoNe9ZIXUZTT9Pk/OuK/KU2N3cGmy+dGNViXreSOAl2/dS4O1o5d0 a7HC6I/dON0y8vAi2uj9UilVsxpFQltG7K05uWfc4W7oetSa+ww8tmGqrVAi48I0lCqZ 8QiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nurUw5DYbQLNPhICx5Qr6kyB2JDY/iLunTIG1WHgxnY=; b=yZV8UueULKf3Vjnb8dTlFzanbf9rvkLpJwwiB1XHzjLvYiiCUkHPoM12JX6Q86OQkn PImVOegR+Ogcb8okBDkm3cAwyDuwzDf3YHM+Pbuze46fQ/8jMfd11YjoHXhada+9qaR3 OmHXOqPkHlbf8RmpU5FE2P0ShOb84HmmP8j0BBOvsHJp66Qn8DpIo/djaZk5EiX6Mxje VSnMsNUNXC8/MdF1RHrKYFs1JU8HKFrhXdkn1RGHbLupz9OlWkZDWvKAipWGsYVGfnQW H/qgtK+P5KFQOrXofIVP0nTeRsez6J3E3/lK3Hac1G9abCZStG6ZQFJYNtcEDdbVIat5 iDcw== X-Gm-Message-State: AJIora/UUyXFu+SPlhHFUMDjKcC3Z9NnG2YvY8AvyTowP4BaesRMSwtU SdvY28nAH0X32rbJCpkioncyCD8x47WLURQU/PfutxpUHH0= X-Google-Smtp-Source: AGRyM1tsXgJBNgiGmshPzICRczq71NMbpsrD6wXxdZdTkRw/fSO+qxM5jaYn7yTdFWG2jHMvrCmg9KTWzjaMHul/8AM= X-Received: by 2002:a17:90b:1c0f:b0:1ec:ef7b:8bfc with SMTP id oc15-20020a17090b1c0f00b001ecef7b8bfcmr5458632pjb.157.1656528791125; Wed, 29 Jun 2022 11:53:11 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:115345 Archived-At: --===============0736366604454749112== Content-Type: multipart/alternative; boundary="00000000000027c3b305e29aaa77" --00000000000027c3b305e29aaa77 Content-Type: text/plain; charset="UTF-8" Text that's tight against its viewbox gets clipped: https://i.ibb.co/BGQVzzx/text-clipped.png Here's the code: % SOF \startbuffer[svg] 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF --00000000000027c3b305e29aaa77 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Tex= t that's tight against its viewbox gets clipped:


Here's the code:

% SOF
\startbuffer[svg]
<svg
=C2=A0= =C2=A0width=3D"41.806641mm"
=C2=A0 =C2=A0height=3D"25.69= 2665mm"
=C2=A0 =C2=A0viewBox=3D"0 0 41.806641 25.692665"<= br>=C2=A0 =C2=A0xmlns=3D"http:/= /www.w3.org/2000/svg"
=C2=A0 =C2=A0xmlns:svg=3D"http://www.w3.org/2000/svg">
= =C2=A0 <path
=C2=A0 =C2=A0 =C2=A0d=3D"m 20.90332,25.692664 v -12= .4787"
=C2=A0 =C2=A0 =C2=A0style=3D"fill:none;fill-opacity:1;s= troke:#000000;stroke-opacity:1" />
=C2=A0 <text
=C2=A0 =C2= =A0 =C2=A0x=3D"-0.99609375"
=C2=A0 =C2=A0 =C2=A0y=3D"8.64= 84375"
=C2=A0 =C2=A0 =C2=A0style=3D"font-style:normal;font-var= iant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-fami= ly:Roboto;-inkscape-font-specification:'Roboto, Normal';font-varian= t-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;fon= t-variant-east-asian:normal"><tspan
=C2=A0 =C2=A0 =C2=A0 =C2= =A0x=3D"-0.99609375"
=C2=A0 =C2=A0 =C2=A0 =C2=A0y=3D"8.64= 84375"
=C2=A0 =C2=A0 =C2=A0 =C2=A0style=3D"font-style:normal;f= ont-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;fo= nt-family:Roboto;-inkscape-font-specification:'Roboto, Normal';font= -variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:nor= mal;font-variant-east-asian:normal">16p13.3</tspan></text&= gt;
</svg>
\stopbuffer

\starttext
=C2=A0 =C2=A0\place= figure[]{}{\includesvgbuffer[svg][conversion=3Dmp]}
\stoptext
% EOF
--00000000000027c3b305e29aaa77-- --===============0736366604454749112== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0736366604454749112==--