Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Help save the world!" -- Larry Wall in README


devel / comp.lang.tcl / telling TK where to find fonts

SubjectAuthor
* telling TK where to find fontsBill Poser
`* telling TK where to find fontsChristian Gollwitzer
 `* telling TK where to find fontsBill Poser
  `- telling TK where to find fontsaldo.w....@gmail.com

1
telling TK where to find fonts

<e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=11805&group=comp.lang.tcl#11805

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:6214:b84:b0:635:e19a:6cc4 with SMTP id fe4-20020a0562140b8400b00635e19a6cc4mr23001qvb.2.1688161788200;
Fri, 30 Jun 2023 14:49:48 -0700 (PDT)
X-Received: by 2002:a63:114d:0:b0:55b:3576:c630 with SMTP id
13-20020a63114d000000b0055b3576c630mr1361635pgr.9.1688161787718; Fri, 30 Jun
2023 14:49:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Fri, 30 Jun 2023 14:49:47 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2001:569:fdc5:4b00:d60c:70c9:e000:e0a5;
posting-account=XznDGwkAAAB6qahJVOSMkPZvcu22xKbn
NNTP-Posting-Host: 2001:569:fdc5:4b00:d60c:70c9:e000:e0a5
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com>
Subject: telling TK where to find fonts
From: billposer2@gmail.com (Bill Poser)
Injection-Date: Fri, 30 Jun 2023 21:49:48 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1376
 by: Bill Poser - Fri, 30 Jun 2023 21:49 UTC

I'm sure I used to know the answer to this question, but can't remember, and haven't found it by searching. How do I tell TK where to look for fonts? I have installed Tcl on a new Linux machine, on which I have installed a number of fonts, which are available to, e.g. LibreOffice, but not in TK.

Re: telling TK where to find fonts

<u7ofan$2rdoi$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=11806&group=comp.lang.tcl#11806

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: auriocus@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.tcl
Subject: Re: telling TK where to find fonts
Date: Sat, 1 Jul 2023 07:58:47 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <u7ofan$2rdoi$1@dont-email.me>
References: <e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 1 Jul 2023 05:58:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="64e81e2758cece6ffee98b6f4606836d";
logging-data="2995986"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1817ywaBPd8P+zXLiVK7/k2qxEw1LFarEg="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.12.0
Cancel-Lock: sha1:sJvAljjhO/2sxsyVopHNTOwUCa0=
In-Reply-To: <e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com>
 by: Christian Gollwitzer - Sat, 1 Jul 2023 05:58 UTC

Am 30.06.23 um 23:49 schrieb Bill Poser:
> I'm sure I used to know the answer to this question, but can't remember, and haven't found it by searching. How do I tell TK where to look for fonts? I have installed Tcl on a new Linux machine, on which I have installed a number of fonts, which are available to, e.g. LibreOffice, but not in TK.

Have you compiled Tk on your own? Because, there is a compile-time
option "--enable-xft", which is the standard library now for finding
fonts the same way as LibreOffice does it. If it is disabled or if the
headers for xft are not available, then Tk will use an older method to
render fonts.

Christian

Re: telling TK where to find fonts

<97a470aa-e29e-44f9-9080-10b4df988641n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=11807&group=comp.lang.tcl#11807

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a0c:ef10:0:b0:635:f34b:c1a5 with SMTP id t16-20020a0cef10000000b00635f34bc1a5mr33209qvr.3.1688228801513;
Sat, 01 Jul 2023 09:26:41 -0700 (PDT)
X-Received: by 2002:a05:6a00:1883:b0:668:7143:50ea with SMTP id
x3-20020a056a00188300b00668714350eamr6753541pfh.4.1688228800943; Sat, 01 Jul
2023 09:26:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Sat, 1 Jul 2023 09:26:40 -0700 (PDT)
In-Reply-To: <u7ofan$2rdoi$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:569:fdc5:4b00:7caf:22a4:e7d2:97d8;
posting-account=XznDGwkAAAB6qahJVOSMkPZvcu22xKbn
NNTP-Posting-Host: 2001:569:fdc5:4b00:7caf:22a4:e7d2:97d8
References: <e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com> <u7ofan$2rdoi$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <97a470aa-e29e-44f9-9080-10b4df988641n@googlegroups.com>
Subject: Re: telling TK where to find fonts
From: billposer2@gmail.com (Bill Poser)
Injection-Date: Sat, 01 Jul 2023 16:26:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Bill Poser - Sat, 1 Jul 2023 16:26 UTC

On Friday, June 30, 2023 at 10:58:52 PM UTC-7, Christian Gollwitzer wrote:
> Am 30.06.23 um 23:49 schrieb Bill Poser:
> > I'm sure I used to know the answer to this question, but can't remember, and haven't found it by searching. How do I tell TK where to look for fonts? I have installed Tcl on a new Linux machine, on which I have installed a number of fonts, which are available to, e.g. LibreOffice, but not in TK.
> Have you compiled Tk on your own? Because, there is a compile-time
> option "--enable-xft", which is the standard library now for finding
> fonts the same way as LibreOffice does it. If it is disabled or if the
> headers for xft are not available, then Tk will use an older method to
> render fonts.
>
> Christian
Interesting. No, I installed from ActiveState.

Re: telling TK where to find fonts

<a5583728-3d09-4d66-b6f4-61d30d18f696n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=11832&group=comp.lang.tcl#11832

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a05:620a:462c:b0:762:323e:b3a1 with SMTP id br44-20020a05620a462c00b00762323eb3a1mr48605qkb.12.1688584829161;
Wed, 05 Jul 2023 12:20:29 -0700 (PDT)
X-Received: by 2002:a17:90a:bc43:b0:25b:f9e3:deab with SMTP id
t3-20020a17090abc4300b0025bf9e3deabmr13136606pjv.9.1688584828773; Wed, 05 Jul
2023 12:20:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Wed, 5 Jul 2023 12:20:28 -0700 (PDT)
In-Reply-To: <97a470aa-e29e-44f9-9080-10b4df988641n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.44.166.97; posting-account=CpQfUQoAAACWuSZdT5zfmIK7a0FfbQ0B
NNTP-Posting-Host: 93.44.166.97
References: <e05c494f-4a7c-4383-bdd2-045224305f07n@googlegroups.com>
<u7ofan$2rdoi$1@dont-email.me> <97a470aa-e29e-44f9-9080-10b4df988641n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a5583728-3d09-4d66-b6f4-61d30d18f696n@googlegroups.com>
Subject: Re: telling TK where to find fonts
From: aldo.w.buratti@gmail.com (aldo.w....@gmail.com)
Injection-Date: Wed, 05 Jul 2023 19:20:29 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1693
 by: aldo.w....@gmail.com - Wed, 5 Jul 2023 19:20 UTC

With the "extrafont" package you can use on-fly any font you like.
See https://wiki.tcl-lang.org/page/extrafont

Example:
set fontfamilies [extrafont::load "c:/tmp/Monoton-regular.ttf"]
# just get the 1st font-familiy
set myNewFontFamily [lindex $fontfamilies 0] ;# --> "Monoton"
set myfontname [font create -family $myNewFontFamily -size 20]

# then use $myfontname for a new widget ...
label .mylabel -font $myfontname -text "Hello World"


devel / comp.lang.tcl / telling TK where to find fonts

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor