From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101234 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Strange behavior ! Date: Mon, 16 Jul 2018 00:03:33 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5756729134397828010==" X-Trace: blaine.gmane.org 1531692128 30644 195.159.176.226 (15 Jul 2018 22:02:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2018 22:02:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 16 00:02:03 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fep5f-0007sL-Kz for gctc-ntg-context-518@m.gmane.org; Mon, 16 Jul 2018 00:02:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BA3A43608; Mon, 16 Jul 2018 00:03:47 +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 Td_m2KW2c2i0; Mon, 16 Jul 2018 00:03:46 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6537843609; Mon, 16 Jul 2018 00:03:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4ADAA43608 for ; Mon, 16 Jul 2018 00:03:45 +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 oOxK5KOsRUJI for ; Mon, 16 Jul 2018 00:03:44 +0200 (CEST) Original-Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C667343607 for ; Mon, 16 Jul 2018 00:03:34 +0200 (CEST) Original-Received: by mail-wm0-f42.google.com with SMTP id 69-v6so13819198wmf.3 for ; Sun, 15 Jul 2018 15:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=DPMtKcgkb0n6qyfFzRGX9jlfsyaXiCvG3D0WUjA6Ck0=; b=CZtPRDrxGkT1BhG97nrBb5ytnJv6TK1cU66cz/POane+H+P9hWDn1gqRm2VO6NyQAS OmZR5zcONl71dJQkaJ4YN9+AwmS5QA+662D+WQnJFlrEr/SFWjyqPxMAPzoaIY9/yR/r yBi620hxsTlOuyhADYc7Am52cWKBFHKJ6wZkAzUoYFCXMYLFVEwpq33/J8il7a/nawoN ZsmxSgOimdCIVhBGLkKS0uFnQlZ140komTSem+muRcHEm4ahaNsp4pIF8TA+cI4tdXQm +DPaDMD0rtKAdzqlwaF4OZaSECaRKGcH/hKnC+Euvh7iWnjvn4U8qb+zyANLqgcZQXsZ gOrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DPMtKcgkb0n6qyfFzRGX9jlfsyaXiCvG3D0WUjA6Ck0=; b=sKC/Eti0Xiee/OvrqmMvt4eRnwuWlTeIVOspbL4RnKQt2x+dxL79HG0kS46v1gGcIh z6bwxW7tmjYEhTByzRfWupyovjYDHc4fqdDt4Eb9e8hNLYpi7UCqupNiUbnsqGK3YacE 7FYfdRKHnEPM4uEMc9OIHaQi2SmVQ4W3p0SQv8fVq6hiuofl8QiumDQT6deN/xQg3NIr LbupgIxHnAHdZqvb0RyUKaWac5BMpIwGaaosDs3II0JvJ7sFcmynVkrhBQvz+ZTnDDAP PgNX4Wd0R3ypJ/VrwRIJOT2/KCB0N19QW8s8sVO7bV5rZRHK37E2Ea11cGmo9FPfEwMm 8Efg== X-Gm-Message-State: AOUpUlHwFpq/LXQGdj/8jOLrlCIZE1OvJNot2DLVpoMURA8B6uytW37b 1eEtCp44cEU2Rdrssua5Fwe0iH0vvK2FMFsgYXdc5g== X-Google-Smtp-Source: AAOMgpdyjtAefcpZD91BKoYdAZaZhhUZhUtT5UemTyHCQKMnnXIVCnzrDln3IPhM/n4xt2IFfA9uNHbkve7AqEKRZ9A= X-Received: by 2002:a1c:dac6:: with SMTP id r189-v6mr8303614wmg.150.1531692214277; Sun, 15 Jul 2018 15:03:34 -0700 (PDT) Original-Received: by 2002:adf:a51c:0:0:0:0:0 with HTTP; Sun, 15 Jul 2018 15:03:33 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:101234 Archived-At: --===============5756729134397828010== Content-Type: multipart/alternative; boundary="000000000000565bdd057110e216" --000000000000565bdd057110e216 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good evening, In the code below, I get frames filled in black =E2=80=8B =E2=80=8B ! Thank you Fabrice \setupbodyfont [palatino,11pt] \definecolor[MyColorB][c=3D0.00, m=3D0.62, y=3D1.00, k=3D0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=3Doff, background=3DMyFrame, width=3D\textwidth, location=3Dright] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [D=C3=A9finition] [headstyle=3D\bf\smallcaps] \startuseMPgraphic{MyFrame} picture p ; p :=3D textext.rt(\MPstring{MyFrame}) ; p :=3D p shifted (0,OverlayHeight-ypart center p) ; fill OverlayBox leftenlarged .1TextWidth withcolor \MPcolor{MyColor} ; fill boundingbox p withcolor \MPcolor{myColor} ; draw p withcolor white ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \starttext \startMyText \input knuth \stopMyText \startMyText \input knuth \stopMyText \stoptext --000000000000565bdd057110e216 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good evening,
In the code below, I get frames filled in black
=E2=80= =8B =E2=80=8B
!

Thank you
<= /span>
Fabrice

\setupbo= dyfont [palatino,11pt]

\definecolor[MyColorB][c=3D0.00, m=3D0.62, y= =3D1.00, k=3D0.00]
\definecolor[MyColorA][.75(MyColorB,white)]=C2=A0
\defineframedtext
=C2=A0=C2=A0 [MyText]
=C2=A0=C2=A0 [frame=3Dof= f,
=C2=A0=C2=A0=C2=A0 background=3DMyFrame,
=C2=A0=C2=A0=C2=A0 width= =3D\textwidth,
=C2=A0=C2=A0=C2=A0 location=3Dright]

\defineoverla= y
=C2=A0=C2=A0 [MyFrame]
=C2=A0=C2=A0 [\useMPgraphic{MyFrame}]
\definelabel
=C2=A0=C2=A0 [D=C3=A9finition]
=C2=A0=C2=A0 [headstyle= =3D\bf\smallcaps]


\startuseMPgraphic{MyFrame}
=C2=A0=C2=A0=C2= =A0=C2=A0 picture p ;
=C2=A0=C2=A0=C2=A0=C2=A0 p :=3D textext.rt(\MPstri= ng{MyFrame}) ;
=C2=A0=C2=A0=C2=A0=C2=A0 p :=3D p shifted (0,OverlayHeigh= t-ypart center p) ;
=C2=A0=C2=A0=C2=A0=C2=A0 fill OverlayBox leftenlarge= d .1TextWidth withcolor \MPcolor{MyColor} ;
=C2=A0=C2=A0=C2=A0=C2=A0 fil= l boundingbox p withcolor \MPcolor{myColor} ;
=C2=A0=C2=A0=C2=A0=C2=A0 d= raw p withcolor white ;
=C2=A0=C2=A0=C2=A0=C2=A0 setbounds currentpictur= e to OverlayBox ;
\stopuseMPgraphic


\starttext

\startM= yText
=C2=A0=C2=A0=C2=A0=C2=A0 \input knuth
\stopMyText

\start= MyText
=C2=A0=C2=A0=C2=A0=C2=A0 \input knuth
\stopMyText

\stop= text
--000000000000565bdd057110e216-- --===============5756729134397828010== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5756729134397828010==--