* [9fans] Whats the default font in Acme?
@ 2021-02-17 19:06 bombart
2021-02-17 19:14 ` sirjofri
0 siblings, 1 reply; 26+ messages in thread
From: bombart @ 2021-02-17 19:06 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
And is there a version for high dpi displays?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M4158b5d019a05f8100d16029
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 756 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-17 19:06 [9fans] Whats the default font in Acme? bombart
@ 2021-02-17 19:14 ` sirjofri
2021-02-17 19:38 ` Kurt H Maier
2021-02-18 6:14 ` Ethan Gardener
0 siblings, 2 replies; 26+ messages in thread
From: sirjofri @ 2021-02-17 19:14 UTC (permalink / raw)
To: 9fans
17.02.2021 20:06:00 bombart@gmx.net:
> And is there a version for high dpi displays?
What acme version?
There's 9legacy, 9front, plan9ports, inferno and acme-sac, at least.
Depending on the system this might be different.
On 9front (and maybe on 9legacy?) It's the font you specify with font=,
which is vga by default.
sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M4fc6a98c827a48c5b66dbb2f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-17 19:14 ` sirjofri
@ 2021-02-17 19:38 ` Kurt H Maier
2021-02-17 20:07 ` Kurt H Maier
2021-02-18 0:53 ` Skip Tavakkolian
2021-02-18 6:14 ` Ethan Gardener
1 sibling, 2 replies; 26+ messages in thread
From: Kurt H Maier @ 2021-02-17 19:38 UTC (permalink / raw)
To: 9fans
On Wed, Feb 17, 2021 at 07:14:36PM +0000, sirjofri wrote:
>
> 17.02.2021 20:06:00 bombart@gmx.net:
> > And is there a version for high dpi displays?
>
> On 9front (and maybe on 9legacy?) It's the font you specify with font=,
> which is vga by default.
You can use bdf2subf [1] with my hidpi vga font [2] to get this. Maybe
someone already has? If so, I'd be happy to add it to the VGA pile.
1 - http://plan9.stanleylieber.com/src/bdf2subf.tgz
2 - http://sciops.net/downloads/vga/u_vga32.bdf
khm
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M634cdf3d682636d19a1e1f2c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-17 19:38 ` Kurt H Maier
@ 2021-02-17 20:07 ` Kurt H Maier
2021-02-18 0:53 ` Skip Tavakkolian
1 sibling, 0 replies; 26+ messages in thread
From: Kurt H Maier @ 2021-02-17 20:07 UTC (permalink / raw)
To: 9fans
On Wed, Feb 17, 2021 at 11:38:47AM -0800, Kurt H Maier wrote:
>
> You can use bdf2subf [1] with my hidpi vga font [2] to get this. Maybe
> someone already has? If so, I'd be happy to add it to the VGA pile.
sam-d has done this. A hidpi version of the VGA font ready for Plan 9
can be downloaded from http://sciops.net/downloads/vga/hugevga.tgz
Once unpacked under /lib/font/bit/, you can set
font=/lib/font/bit/hugevga/unicode.font to use it.
khm
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M1e979c6498627055a2557547
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-17 19:38 ` Kurt H Maier
2021-02-17 20:07 ` Kurt H Maier
@ 2021-02-18 0:53 ` Skip Tavakkolian
2021-02-19 6:41 ` Conor Williams
1 sibling, 1 reply; 26+ messages in thread
From: Skip Tavakkolian @ 2021-02-18 0:53 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 915 bytes --]
FYI, bdf2subf is on github also.
https://github.com/9nut/plan9
On Wed, Feb 17, 2021 at 11:40 AM Kurt H Maier <khm@sciops.net> wrote:
> On Wed, Feb 17, 2021 at 07:14:36PM +0000, sirjofri wrote:
> >
> > 17.02.2021 20:06:00 bombart@gmx.net:
> > > And is there a version for high dpi displays?
> >
> > On 9front (and maybe on 9legacy?) It's the font you specify with font=,
> > which is vga by default.
>
> You can use bdf2subf [1] with my hidpi vga font [2] to get this. Maybe
> someone already has? If so, I'd be happy to add it to the VGA pile.
>
> 1 - http://plan9.stanleylieber.com/src/bdf2subf.tgz
> 2 - http://sciops.net/downloads/vga/u_vga32.bdf
>
> khm
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M042920507cc4b9f86936bc6c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2510 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-17 19:14 ` sirjofri
2021-02-17 19:38 ` Kurt H Maier
@ 2021-02-18 6:14 ` Ethan Gardener
2021-02-18 8:31 ` bombart
2021-02-18 8:41 ` bombart
1 sibling, 2 replies; 26+ messages in thread
From: Ethan Gardener @ 2021-02-18 6:14 UTC (permalink / raw)
To: 9fans
On Wed, Feb 17, 2021, at 7:14 PM, sirjofri wrote:
>
> On 9front (and maybe on 9legacy?) It's the font you specify with font=,
> which is vga by default.
It's almost always specified with font= so you can `echo $font` to see what it is. (If font isn't set, I think there might be a builtin default of `fixed`.)
As for the actual font, non-9front systems likely have Pelm or Lucida Sans [Mono] for their default font. Lucida is an old bitmap font, not the newer scalable Lucidux Sans. I don't see any sign of Pelm outside Plan 9 circles and I'm sure it's also a bitmap font by design. *However,* a quick web search for `"pelm" font` turned up a Hacker News page with opinions that Lucida Grande is very similar to Lucida, and "Go Mono is closer to (or a remake of) the Pelm font from Plan 9." Both of these are scalable.
The article it's commenting on announces the Go fonts, containing sample images:
https://blog.golang.org/go-fonts
HN subthread with cited/quoted opinions:
https://news.ycombinator.com/item?id=12973952
HN thread:
https://news.ycombinator.com/item?id=12973716
Personally, I'd like to see a scalable version of the old GEM font, although I liked it more for its style than its readability when I was a teenager. ;)
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M0fb2746b097f413e3b279531
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 6:14 ` Ethan Gardener
@ 2021-02-18 8:31 ` bombart
2021-02-18 9:04 ` Skip Tavakkolian
2021-02-18 8:41 ` bombart
1 sibling, 1 reply; 26+ messages in thread
From: bombart @ 2021-02-18 8:31 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
Sorry for not being precise. I use Acme from plan9port.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M70e2b880f59a020df010d842
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 772 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 6:14 ` Ethan Gardener
2021-02-18 8:31 ` bombart
@ 2021-02-18 8:41 ` bombart
1 sibling, 0 replies; 26+ messages in thread
From: bombart @ 2021-02-18 8:41 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
I just ran “echo $font” from inside Acme and it says “/lib/font/bit/lucsans/euro.8.font” so I assume its the bitmap version of Lucida Sans.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Maa359034293eba46a379862b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 880 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 8:31 ` bombart
@ 2021-02-18 9:04 ` Skip Tavakkolian
2021-02-18 11:04 ` Ethan Gardener
` (2 more replies)
0 siblings, 3 replies; 26+ messages in thread
From: Skip Tavakkolian @ 2021-02-18 9:04 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
Plan9port has fontsrv. Any truetype you have on your system is usable.
man fontsrv for details.
On Thu, Feb 18, 2021 at 12:32 AM <bombart@gmx.net> wrote:
> Sorry for not being precise. I use Acme from plan9port.
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M70e2b880f59a020df010d842>
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Me5c14bdc81abe13f418c5f83
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1211 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 9:04 ` Skip Tavakkolian
@ 2021-02-18 11:04 ` Ethan Gardener
2021-02-19 6:32 ` Mark van Atten
2021-02-20 0:58 ` [9fans] " cigar562hfsp952fans
2 siblings, 0 replies; 26+ messages in thread
From: Ethan Gardener @ 2021-02-18 11:04 UTC (permalink / raw)
To: 9fans
On Thu, Feb 18, 2021, at 9:04 AM, Skip Tavakkolian wrote:
> Plan9port has fontsrv. Any truetype you have on your system is usable.
> man fontsrv for details.
Yes. Fontsrv is why I was describing truetype fonts, I just forgot to mention fontsrv itself.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M73a52eff1e0f6793bdbcbabf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 9:04 ` Skip Tavakkolian
2021-02-18 11:04 ` Ethan Gardener
@ 2021-02-19 6:32 ` Mark van Atten
2021-02-19 6:44 ` Conor Williams
` (3 more replies)
2021-02-20 0:58 ` [9fans] " cigar562hfsp952fans
2 siblings, 4 replies; 26+ messages in thread
From: Mark van Atten @ 2021-02-19 6:32 UTC (permalink / raw)
To: 9fans
On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
<skip.tavakkolian@gmail.com> wrote:
>
> Plan9port has fontsrv. Any truetype you have on your system is usable.
> man fontsrv for details.
On my system (Arch 5.10.16) using fontsrv introduces 2-3 second delays
whenever a program needs to know about the font,
e.g. when opening acme the window first turns all black and then all
white before the columns appear; similarly, lc always takes about
2 seconds before the listing appears.
Do others observe this, too?
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Mee8deb40c803057d43425172
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-18 0:53 ` Skip Tavakkolian
@ 2021-02-19 6:41 ` Conor Williams
0 siblings, 0 replies; 26+ messages in thread
From: Conor Williams @ 2021-02-19 6:41 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]
Any wanna trade a serif font ora courier for a cyclib font pp
FYI, bdf2subf is on github also.
https://github.com/9nut/plan9
On Wed, Feb 17, 2021 at 11:40 AM Kurt H Maier <khm@sciops.net> wrote:
> On Wed, Feb 17, 2021 at 07:14:36PM +0000, sirjofri wrote:
> >
> > 17.02.2021 20:06:00 bombart@gmx.net:
> > > And is there a version for high dpi displays?
> >
> > On 9front (and maybe on 9legacy?) It's the font you specify with font=,
> > which is vga by default.
>
> You can use bdf2subf [1] with my hidpi vga font [2] to get this. Maybe
> someone already has? If so, I'd be happy to add it to the VGA pile.
>
> 1 - http://plan9.stanleylieber.com/src/bdf2subf.tgz
> 2 - http://sciops.net/downloads/vga/u_vga32.bdf
>
> khm
*9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
<https://9fans.topicbox.com/groups/9fans> + participants
<https://9fans.topicbox.com/groups/9fans/members> + delivery options
<https://9fans.topicbox.com/groups/9fans/subscription> Permalink
<https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M042920507cc4b9f86936bc6c>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Ma77ae25ce2fee18d267f1720
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2805 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-19 6:32 ` Mark van Atten
@ 2021-02-19 6:44 ` Conor Williams
2021-02-19 6:49 ` Conor Williams
2021-02-20 6:45 ` Bakul Shah
` (2 subsequent siblings)
3 siblings, 1 reply; 26+ messages in thread
From: Conor Williams @ 2021-02-19 6:44 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
/\_//Well is it not snip snip draught xt c ma
On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
<skip.tavakkolian@gmail.com> wrote:
>
> Plan9port has fontsrv. Any truetype you have on your system is usable.
> man fontsrv for details.
On my system (Arch 5.10.16) using fontsrv introduces 2-3 second delays
whenever a program needs to know about the font,
e.g. when opening acme the window first turns all black and then all
white before the columns appear; similarly, lc always takes about
2 seconds before the listing appears.
Do others observe this, too?
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M24f44d9e4b922f33b13f33cc
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2034 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-19 6:44 ` Conor Williams
@ 2021-02-19 6:49 ` Conor Williams
0 siblings, 0 replies; 26+ messages in thread
From: Conor Williams @ 2021-02-19 6:49 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
Oops sorry wrong cup of tea - cp---w
On 19 Feb 2021 06:44, "Conor Williams" <conor.williams@gmail.com> wrote:
> /\_//Well is it not snip snip draught xt c ma
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
> <skip.tavakkolian@gmail.com> wrote:
> >
> > Plan9port has fontsrv. Any truetype you have on your system is usable.
> > man fontsrv for details.
>
> On my system (Arch 5.10.16) using fontsrv introduces 2-3 second delays
> whenever a program needs to know about the font,
> e.g. when opening acme the window first turns all black and then all
> white before the columns appear; similarly, lc always takes about
> 2 seconds before the listing appears.
>
> Do others observe this, too?
>
> Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M8590d3f118b7c7662f4827dd
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2358 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* [9fans] Re: Whats the default font in Acme?
2021-02-18 9:04 ` Skip Tavakkolian
2021-02-18 11:04 ` Ethan Gardener
2021-02-19 6:32 ` Mark van Atten
@ 2021-02-20 0:58 ` cigar562hfsp952fans
2021-02-20 3:47 ` [9fans] " Bakul Shah
2 siblings, 1 reply; 26+ messages in thread
From: cigar562hfsp952fans @ 2021-02-20 0:58 UTC (permalink / raw)
To: 9fans
Skip Tavakkolian <skip.tavakkolian@gmail.com> writes:
> Plan9port has fontsrv. Any truetype you have on your system is usable.
> man fontsrv for details.
Unfortunately, man fontsrv doesn't provide the details. More
specifically, it doesn't describe how to configure fontsrv. On my
system:
$ fontsrv &
$ 9p ls font
$
Nothing shows up.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M25f7e1a03afa2df6d480ec21
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 0:58 ` [9fans] " cigar562hfsp952fans
@ 2021-02-20 3:47 ` Bakul Shah
2021-02-20 4:21 ` Skip Tavakkolian
2021-02-20 4:50 ` Bakul Shah
0 siblings, 2 replies; 26+ messages in thread
From: Bakul Shah @ 2021-02-20 3:47 UTC (permalink / raw)
To: 9fans
On Feb 19, 2021, at 4:58 PM, cigar562hfsp952fans@icebubble.org wrote:
>
> Skip Tavakkolian <skip.tavakkolian@gmail.com> writes:
>
>> Plan9port has fontsrv. Any truetype you have on your system is usable.
>> man fontsrv for details.
>
> Unfortunately, man fontsrv doesn't provide the details. More
> specifically, it doesn't describe how to configure fontsrv. On my
> system:
>
> $ fontsrv &
> $ 9p ls font
> $
>
> Nothing shows up.
Works fine on my macbook pro.
$ 9p ls font | wc
822 822 15179
Note this from the fontsrv man page:
Fontsrv has no support for X11 fonts; on X11 systems, it
will serve an empty top-level directory.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M0e834b3d42b50eab4bb3d12c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 3:47 ` [9fans] " Bakul Shah
@ 2021-02-20 4:21 ` Skip Tavakkolian
2021-02-20 4:50 ` Bakul Shah
1 sibling, 0 replies; 26+ messages in thread
From: Skip Tavakkolian @ 2021-02-20 4:21 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]
If you don't have access to any other truetype fonts, you might want to
try Go font to check. Here's the info:
https://blog.golang.org/go-fonts
On Fri, Feb 19, 2021, 7:48 PM Bakul Shah <bakul@iitbombay.org> wrote:
> On Feb 19, 2021, at 4:58 PM, cigar562hfsp952fans@icebubble.org wrote:
> >
> > Skip Tavakkolian <skip.tavakkolian@gmail.com> writes:
> >
> >> Plan9port has fontsrv. Any truetype you have on your system is usable.
> >> man fontsrv for details.
> >
> > Unfortunately, man fontsrv doesn't provide the details. More
> > specifically, it doesn't describe how to configure fontsrv. On my
> > system:
> >
> > $ fontsrv &
> > $ 9p ls font
> > $
> >
> > Nothing shows up.
>
> Works fine on my macbook pro.
>
> $ 9p ls font | wc
> 822 822 15179
>
> Note this from the fontsrv man page:
>
> Fontsrv has no support for X11 fonts; on X11 systems, it
> will serve an empty top-level directory.
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M67c74097b11f97836be0178b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 3041 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 3:47 ` [9fans] " Bakul Shah
2021-02-20 4:21 ` Skip Tavakkolian
@ 2021-02-20 4:50 ` Bakul Shah
2021-02-20 5:45 ` Mark van Atten
1 sibling, 1 reply; 26+ messages in thread
From: Bakul Shah @ 2021-02-20 4:50 UTC (permalink / raw)
To: 9fans
On Feb 19, 2021, at 7:47 PM, Bakul Shah <bakul@iitbombay.org> wrote:
>
> On Feb 19, 2021, at 4:58 PM, cigar562hfsp952fans@icebubble.org wrote:
>>
>> Skip Tavakkolian <skip.tavakkolian@gmail.com> writes:
>>
>>> Plan9port has fontsrv. Any truetype you have on your system is usable.
>>> man fontsrv for details.
>>
>> Unfortunately, man fontsrv doesn't provide the details. More
>> specifically, it doesn't describe how to configure fontsrv. On my
>> system:
>>
>> $ fontsrv &
>> $ 9p ls font
>> $
>>
>> Nothing shows up.
>
> Works fine on my macbook pro.
>
> $ 9p ls font | wc
> 822 822 15179
>
> Note this from the fontsrv man page:
>
> Fontsrv has no support for X11 fonts; on X11 systems, it
> will serve an empty top-level directory.
I just tried fontsrv on FreeBSD system and it certainly finds .ttf
format fonts installed on the system.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Ma88797ac18075c7d47ed409c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 4:50 ` Bakul Shah
@ 2021-02-20 5:45 ` Mark van Atten
0 siblings, 0 replies; 26+ messages in thread
From: Mark van Atten @ 2021-02-20 5:45 UTC (permalink / raw)
To: 9fans
On Sat, 20 Feb 2021 at 05:51, Bakul Shah <bakul@iitbombay.org> wrote:
> > Note this from the fontsrv man page:
> >
> > Fontsrv has no support for X11 fonts; on X11 systems, it
> > will serve an empty top-level directory.
>
> I just tried fontsrv on FreeBSD system and it certainly finds .ttf
> format fonts installed on the system.
It works fine on my Arch, too. On the FreeBSD system, do you find
fontsrv introduces the lags I described?
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M5bad372e794a178b3b494bb0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-19 6:32 ` Mark van Atten
2021-02-19 6:44 ` Conor Williams
@ 2021-02-20 6:45 ` Bakul Shah
2021-02-20 12:04 ` Mark van Atten
2021-02-21 1:22 ` Ethan Gardener
2021-03-07 14:23 ` Mark van Atten
3 siblings, 1 reply; 26+ messages in thread
From: Bakul Shah @ 2021-02-20 6:45 UTC (permalink / raw)
To: 9fans
On Feb 18, 2021, at 10:32 PM, Mark van Atten <vanattenmark@gmail.com> wrote:
>
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
> <skip.tavakkolian@gmail.com> wrote:
>>
>> Plan9port has fontsrv. Any truetype you have on your system is usable.
>> man fontsrv for details.
>
> On my system (Arch 5.10.16) using fontsrv introduces 2-3 second delays
> whenever a program needs to know about the font,
> e.g. when opening acme the window first turns all black and then all
> white before the columns appear; similarly, lc always takes about
> 2 seconds before the listing appears.
>
> Do others observe this, too?
Even running acme on a FreeBSD host & displaying it on a MBP screen
there was no perceptible delay. May be you have a slow disk? You can
do "strace -r fontsrv" to see where time is being spent.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M8dcd2309bc3456de4dce079c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 6:45 ` Bakul Shah
@ 2021-02-20 12:04 ` Mark van Atten
2021-02-20 15:26 ` Russ Cox
0 siblings, 1 reply; 26+ messages in thread
From: Mark van Atten @ 2021-02-20 12:04 UTC (permalink / raw)
To: 9fans
It seems to have been some kind of permissions problem. If I run
fontsrv with a mountpoint created in my home directory,
it works perfectly.
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M4005dd63b8324e8b0133f10d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 12:04 ` Mark van Atten
@ 2021-02-20 15:26 ` Russ Cox
2021-02-20 17:31 ` Mark van Atten
0 siblings, 1 reply; 26+ messages in thread
From: Russ Cox @ 2021-02-20 15:26 UTC (permalink / raw)
To: Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
For what it's worth, you don't need to mount fontsrv anywhere.
You can just use 'fontsrv -p .' to list the fonts,
and then refer to them as /mnt/font/Name/SIZEa/font.
For example:
/usr/local/plan9/bin/acme \
-f /mnt/font/LucidaGrande/12a/font \
-F /mnt/font/SourceCodePro-Regular/12a/font
In that form, acme will "open" /mnt/font/... by reading fontsrv -p's
output.
Best,
Russ
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Mdc64b25095aa74ff0c6c1e13
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 3355 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-20 15:26 ` Russ Cox
@ 2021-02-20 17:31 ` Mark van Atten
0 siblings, 0 replies; 26+ messages in thread
From: Mark van Atten @ 2021-02-20 17:31 UTC (permalink / raw)
To: 9fans
On Sat, 20 Feb 2021 at 16:26, Russ Cox <rsc@swtch.com> wrote:
>
> For what it's worth, you don't need to mount fontsrv anywhere.
That is how I used to do it, as in the man page; but for some,
probably local, reason the problem I described now arises
(actually as of commit 5f0fa18, fontsrv: handle non-BMP runes on X11).
I will look into that, and use the mountpoint in my home dir in the meantime.
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M58a92fdb0b48a23c2bc700b3
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-19 6:32 ` Mark van Atten
2021-02-19 6:44 ` Conor Williams
2021-02-20 6:45 ` Bakul Shah
@ 2021-02-21 1:22 ` Ethan Gardener
2021-02-21 1:27 ` Ethan Gardener
2021-03-07 14:23 ` Mark van Atten
3 siblings, 1 reply; 26+ messages in thread
From: Ethan Gardener @ 2021-02-21 1:22 UTC (permalink / raw)
To: 9fans
Years ago, I used to convert fonts by copying from fontsrv -p. This was due to bugs fontsrv had at the time, but I guess it may still be useful.
Here's the 4 scripts I used to use, for whatever they might be worth.
% for(n in _get*){echo 'cat >' $n '<<EOF'; cat $n; echo}
cat > _get_1_size <<EOF
#!/data/plan9/plan9port/bin/rc
ifs='
'
name = $1^/
dir = $2^/ # size dir; e.g. '12' or '12a'
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
if(! ~ $status '') exit
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
cat > _get_all_sizes <<EOF
#!/data/plan9/plan9port/bin/rc
# antialiased
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
echo $dir >[1=2]
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
}
cat > _get_all_sizes-noaa <<EOF
#!/data/plan9/plan9port/bin/rc
# non-antialiased
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
if(! ~ $dir *[0-9]a/) {
echo $dir >[1=2]
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
}
}
cat > _get_all_sizes-prefix-version <<EOF
#!/data/plan9/plan9port/bin/rc
# this may give different filenames? i don't remember, sorry.
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
prefix = `{echo $dir | sed 's=/=='}
fontsrv -p $name^$dir^font |
ssam ',x=[^ ]+$=i='^$prefix^'-' > $prefix^.font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.*=& > '^$prefix^'-&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=
' #| rc
}
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M641c4f27e469e9cb1dff1426
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-21 1:22 ` Ethan Gardener
@ 2021-02-21 1:27 ` Ethan Gardener
0 siblings, 0 replies; 26+ messages in thread
From: Ethan Gardener @ 2021-02-21 1:27 UTC (permalink / raw)
To: 9fans
I forgot the EOF tokens, sorry for the noise. I shouldn't do this while tired, or maybe at all.
% for(n in _get*){echo 'cat >' $n '<<EOF'; cat $n; echo EOF; echo}
cat > _get_1_size <<EOF
#!/data/plan9/plan9port/bin/rc
ifs='
'
name = $1^/
dir = $2^/ # size dir; e.g. '12' or '12a'
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
if(! ~ $status '') exit
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
EOF
cat > _get_all_sizes <<EOF
#!/data/plan9/plan9port/bin/rc
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
echo $dir >[1=2]
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
}
EOF
cat > _get_all_sizes-noaa <<EOF
#!/data/plan9/plan9port/bin/rc
# workaround for segfaults & stalls with some font/size combinations when anti-aliased.
# uh, it's not just aa, but it's more likely with aa.
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
if(! ~ $dir *[0-9]a/) {
echo $dir >[1=2]
mkdir -p $dir
fontsrv -p $name^$dir^font > $dir^font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.+=& > '^$dir^'&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=' | rc
}
}
EOF
cat > _get_all_sizes-prefix-version <<EOF
#!/data/plan9/plan9port/bin/rc
ifs='
'
name = $1
sizedirs = `{fontsrv -p $name}
if(! ~ $status '') exit
for(dir in $sizedirs) {
prefix = `{echo $dir | sed 's=/=='}
fontsrv -p $name^$dir^font |
ssam ',x=[^ ]+$=i='^$prefix^'-' > $prefix^.font
fontsrv -p $name^$dir^font |
ssam '1d
,x=.* =d
,s=.*=& > '^$prefix^'-&=g
,x=^=i=fontsrv -p '''^$name^$dir^'''=
' #| rc
}
EOF
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M4b945fa58f69efff23098167
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [9fans] Whats the default font in Acme?
2021-02-19 6:32 ` Mark van Atten
` (2 preceding siblings ...)
2021-02-21 1:22 ` Ethan Gardener
@ 2021-03-07 14:23 ` Mark van Atten
3 siblings, 0 replies; 26+ messages in thread
From: Mark van Atten @ 2021-03-07 14:23 UTC (permalink / raw)
To: 9fans
On Fri, 19 Feb 2021 at 07:32, Mark van Atten <vanattenmark@gmail.com> wrote:
>
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
> <skip.tavakkolian@gmail.com> wrote:
> >
> > Plan9port has fontsrv. Any truetype you have on your system is usable.
> > man fontsrv for details.
>
> On my system (Arch 5.10.16) using fontsrv introduces 2-3 second delays
> whenever a program needs to know about the font,
> e.g. when opening acme the window first turns all black and then all
> white before the columns appear; similarly, lc always takes about
> 2 seconds before the listing appears.
>
> Do others observe this, too?
My bad (as expected); it apparently arose because of starting rio on a
small screen and then switching to a larger one. I hvae now set this
up properly, and the problem has disappeared.
Mark.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-M039ed017e549db172dacbbf5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2021-03-07 14:24 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 19:06 [9fans] Whats the default font in Acme? bombart
2021-02-17 19:14 ` sirjofri
2021-02-17 19:38 ` Kurt H Maier
2021-02-17 20:07 ` Kurt H Maier
2021-02-18 0:53 ` Skip Tavakkolian
2021-02-19 6:41 ` Conor Williams
2021-02-18 6:14 ` Ethan Gardener
2021-02-18 8:31 ` bombart
2021-02-18 9:04 ` Skip Tavakkolian
2021-02-18 11:04 ` Ethan Gardener
2021-02-19 6:32 ` Mark van Atten
2021-02-19 6:44 ` Conor Williams
2021-02-19 6:49 ` Conor Williams
2021-02-20 6:45 ` Bakul Shah
2021-02-20 12:04 ` Mark van Atten
2021-02-20 15:26 ` Russ Cox
2021-02-20 17:31 ` Mark van Atten
2021-02-21 1:22 ` Ethan Gardener
2021-02-21 1:27 ` Ethan Gardener
2021-03-07 14:23 ` Mark van Atten
2021-02-20 0:58 ` [9fans] " cigar562hfsp952fans
2021-02-20 3:47 ` [9fans] " Bakul Shah
2021-02-20 4:21 ` Skip Tavakkolian
2021-02-20 4:50 ` Bakul Shah
2021-02-20 5:45 ` Mark van Atten
2021-02-18 8:41 ` bombart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).