Re: [9fans] Whats the default font in Acme?

2021-03-07 Thread Mark van Atten
On Fri, 19 Feb 2021 at 07:32, Mark van Atten  wrote:
>
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
>  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


Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Ethan Gardener
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 '< _get_1_size < $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 <[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 <[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 < $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


Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Ethan Gardener
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 '< _get_1_size < $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 <[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 <[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 < $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


Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Mark van Atten
On Sat, 20 Feb 2021 at 16:26, Russ Cox  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


Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Russ Cox
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


Re: [9fans] Whats the default font in Acme?

2021-02-20 Thread Mark van Atten
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


Re: [9fans] Whats the default font in Acme?

2021-02-19 Thread Bakul Shah
On Feb 18, 2021, at 10:32 PM, Mark van Atten  wrote:
> 
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
>  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


Re: [9fans] Whats the default font in Acme?

2021-02-19 Thread Mark van Atten
On Sat, 20 Feb 2021 at 05:51, Bakul Shah  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


Re: [9fans] Whats the default font in Acme?

2021-02-19 Thread Bakul Shah
On Feb 19, 2021, at 7:47 PM, Bakul Shah  wrote:
> 
> On Feb 19, 2021, at 4:58 PM, cigar562hfsp952f...@icebubble.org wrote:
>> 
>> Skip Tavakkolian  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


Re: [9fans] Whats the default font in Acme?

2021-02-19 Thread Skip Tavakkolian
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  wrote:

> On Feb 19, 2021, at 4:58 PM, cigar562hfsp952f...@icebubble.org wrote:
> >
> > Skip Tavakkolian  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


Re: [9fans] Whats the default font in Acme?

2021-02-19 Thread Bakul Shah
On Feb 19, 2021, at 4:58 PM, cigar562hfsp952f...@icebubble.org wrote:
> 
> Skip Tavakkolian  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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Conor Williams
Oops sorry wrong cup of tea - cp---w
On 19 Feb 2021 06:44, "Conor Williams"  wrote:

> /\_//Well is it not snip snip draught xt c ma
> On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
>  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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Conor Williams
/\_//Well is it not snip snip draught xt c ma
On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
 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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Conor Williams
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  wrote:

> On Wed, Feb 17, 2021 at 07:14:36PM +, sirjofri wrote:
> >
> > 17.02.2021 20:06:00 bomb...@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 / see discussions
 + participants
 + delivery options
 Permalink


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Ma77ae25ce2fee18d267f1720
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Mark van Atten
On Thu, 18 Feb 2021 at 10:04, Skip Tavakkolian
 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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Ethan Gardener
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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread Skip Tavakkolian
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  wrote:

> Sorry for not being precise. I use Acme from plan9port.
> *9fans * / 9fans / see discussions
>  + participants
>  + delivery options
>  Permalink
> 
>

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Td0ab6c3112c95493-Me5c14bdc81abe13f418c5f83
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread bombart
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


Re: [9fans] Whats the default font in Acme?

2021-02-18 Thread bombart
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


Re: [9fans] Whats the default font in Acme?

2021-02-17 Thread Ethan Gardener
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


Re: [9fans] Whats the default font in Acme?

2021-02-17 Thread Skip Tavakkolian
FYI, bdf2subf is on github also.
https://github.com/9nut/plan9


On Wed, Feb 17, 2021 at 11:40 AM Kurt H Maier  wrote:

> On Wed, Feb 17, 2021 at 07:14:36PM +, sirjofri wrote:
> >
> > 17.02.2021 20:06:00 bomb...@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


Re: [9fans] Whats the default font in Acme?

2021-02-17 Thread Kurt H Maier
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


Re: [9fans] Whats the default font in Acme?

2021-02-17 Thread Kurt H Maier
On Wed, Feb 17, 2021 at 07:14:36PM +, sirjofri wrote:
> 
> 17.02.2021 20:06:00 bomb...@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


Re: [9fans] Whats the default font in Acme?

2021-02-17 Thread sirjofri



17.02.2021 20:06:00 bomb...@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


[9fans] Whats the default font in Acme?

2021-02-17 Thread bombart
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