Deutsch English Français Italiano |
<vfu1f3$29gua$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: undroidwish <undroidwish@googlemail.com> Newsgroups: comp.lang.tcl Subject: Re: canvas: change the background of a text item Date: Wed, 30 Oct 2024 20:29:38 +0100 Organization: A noiseless patient Spider Lines: 24 Message-ID: <vfu1f3$29gua$1@dont-email.me> References: <ygav7x9x0k4.fsf@akutech.de> <ygar07xwvv9.fsf@akutech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 30 Oct 2024 20:29:39 +0100 (CET) Injection-Info: dont-email.me; posting-host="38dd94041acb4ab03e3767932ee76b8b"; logging-data="2409418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+P9LNkqOauJY7+spkp5zawsbZqxcR0lBQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cancel-Lock: sha1:IOVEAac3llGfDQR7g1pE5FDhFgU= In-Reply-To: <ygar07xwvv9.fsf@akutech.de> Content-Language: en-US Bytes: 1889 On 10/30/24 14:42, Ralf Fassel wrote: > Ok, found a workaround on the WIKI: > > https://wiki.tcl-lang.org/page/canvas+text > ... thanks for digging, that's intriguing. The XLFD allowed in ancient times for transformations, didn't know that. Not that it is relevant for now, since we all render our texts in Tk using libxft. But until 2.3.5, that library, too, had still problems scaling/rotating/translating bitmap fonts (especially the color emojis). > - create a rectangle with the bbox of the text and lower it beneath > the text. And yes, the challenge now is to make the rectangle (ahem, rotated, a polygon) for a somewhat rotated text out of its bbox (if you'd like to have a text background). And please, enhance the wiki in this regard. BR, Christian