* [9fans] ttf2subf + VeraMono rendering
@ 2007-08-13 9:30 prem
2007-08-13 10:28 ` Adrian Tritschler
0 siblings, 1 reply; 8+ messages in thread
From: prem @ 2007-08-13 9:30 UTC (permalink / raw)
To: 9fans
Hi All,
Just tried converting some Linux TTF fonts to Plan9 works well.
But the problem is if the terminal window is out of focus and clicked
back on, then the fonts somehow becomes clumsy (distorted bold face).
I am seeing this problem on qemu as well as VMPlayer based Plan9
installations.
However this doesn't happen in acme window, it happens only to the
terminal window.
Any hints how to avoid this?
/Prem
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] ttf2subf + VeraMono rendering
2007-08-13 9:30 [9fans] ttf2subf + VeraMono rendering prem
@ 2007-08-13 10:28 ` Adrian Tritschler
2007-08-13 11:25 ` erik quanstrom
2007-08-13 13:12 ` [9fans] " prem
0 siblings, 2 replies; 8+ messages in thread
From: Adrian Tritschler @ 2007-08-13 10:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
prem wrote:
> Hi All,
> Just tried converting some Linux TTF fonts to Plan9 works well.
> But the problem is if the terminal window is out of focus and clicked
> back on, then the fonts somehow becomes clumsy (distorted bold face).
> I am seeing this problem on qemu as well as VMPlayer based Plan9
> installations.
I can confirm that the problem happens with a plan9 terminal and the
vera.ttf font running as a guest OS in VMware workstation 5.5, I'd
thought it was an oddity of my setup.
> However this doesn't happen in acme window, it happens only to the
> terminal window.
> Any hints how to avoid this?
> /Prem
Adrian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] ttf2subf + VeraMono rendering
2007-08-13 10:28 ` Adrian Tritschler
@ 2007-08-13 11:25 ` erik quanstrom
2007-08-13 13:12 ` [9fans] " prem
1 sibling, 0 replies; 8+ messages in thread
From: erik quanstrom @ 2007-08-13 11:25 UTC (permalink / raw)
To: 9fans
> I can confirm that the problem happens with a plan9 terminal and the
> vera.ttf font running as a guest OS in VMware workstation 5.5, I'd
> thought it was an oddity of my setup.
>
> > However this doesn't happen in acme window, it happens only to the
> > terminal window.
>
> > Any hints how to avoid this?
you need an updated rio/libframe/devdraw. the problem is that libframe
used to do an alpha draw on top of the current screen image.
with a subpixel antialiased font, there are many pixels with
an alpha channel between 0 and 0xff, so drawing a character
on top of itself will result in these pixels becoming darker.
so when you deselect a window and reselect it (causing the text
to be redrawn grey and then black), the old algorithm would
cause pixels with an alpha channel between 0 and 0xff to become
darker, making the text look pretty blocky.
this was fixed may 15, 2006, i believe. i use a subpixel antialiased font.
(/n/sources/contrib/quanstro/antialias.tar /lib/font/bit/cyberbit/mod14.font)
by the way, i don't think acme ever had this problem.
- erik
^ permalink raw reply [flat|nested] 8+ messages in thread
* [9fans] Re: ttf2subf + VeraMono rendering
2007-08-13 10:28 ` Adrian Tritschler
2007-08-13 11:25 ` erik quanstrom
@ 2007-08-13 13:12 ` prem
2007-08-13 13:59 ` erik quanstrom
1 sibling, 1 reply; 8+ messages in thread
From: prem @ 2007-08-13 13:12 UTC (permalink / raw)
To: 9fans
> you need an updated rio/libframe/devdraw. the problem is that libframe
> this was fixed may 15, 2006, i believe. i use a subpixel antialiased font.
> (/n/sources/contrib/quanstro/antialias.tar /lib/font/bit/cyberbit/mod14.font)
>
I have the newest setup i guess, did a pull today morning as well, is
this some other libframe which does not come with official plan9
distribution?
/Prem
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Re: ttf2subf + VeraMono rendering
2007-08-13 13:12 ` [9fans] " prem
@ 2007-08-13 13:59 ` erik quanstrom
2007-08-15 16:14 ` Uriel
0 siblings, 1 reply; 8+ messages in thread
From: erik quanstrom @ 2007-08-13 13:59 UTC (permalink / raw)
To: 9fans
> > you need an updated rio/libframe/devdraw. the problem is that libframe
> > this was fixed may 15, 2006, i believe. i use a subpixel antialiased font.
> > (/n/sources/contrib/quanstro/antialias.tar /lib/font/bit/cyberbit/mod14.font)
> >
> I have the newest setup i guess, did a pull today morning as well, is
> this some other libframe which does not come with official plan9
> distribution?
>
> /Prem
i thought i was using the one from the distribution. it turns out there is a
difference. i will put my copy on sources /n/sources/contrib/quanstro/rio
; 9diff wind.c
/n/sources/plan9//sys/src/cmd/rio/wind.c:710,716 - wind.c:710,716
{
wsetcols(w);
if(!w->mouseopen)
- _frredraw(w, w->Frame.r.min, w->cols[TEXT], nil);
+ _frredraw(w, w->Frame.r.min, w->cols[TEXT], w->cols[BACK]);
if(w == input){
wborder(w, Selborder);
wsetcursor(w, 0);
- erik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Re: ttf2subf + VeraMono rendering
2007-08-13 13:59 ` erik quanstrom
@ 2007-08-15 16:14 ` Uriel
2007-08-16 13:42 ` erik quanstrom
0 siblings, 1 reply; 8+ messages in thread
From: Uriel @ 2007-08-15 16:14 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Why not submit a patch?
uriel
On 8/13/07, erik quanstrom <quanstro@coraid.com> wrote:
> > > you need an updated rio/libframe/devdraw. the problem is that libframe
> > > this was fixed may 15, 2006, i believe. i use a subpixel antialiased font.
> > > (/n/sources/contrib/quanstro/antialias.tar /lib/font/bit/cyberbit/mod14.font)
> > >
> > I have the newest setup i guess, did a pull today morning as well, is
> > this some other libframe which does not come with official plan9
> > distribution?
> >
> > /Prem
>
> i thought i was using the one from the distribution. it turns out there is a
> difference. i will put my copy on sources /n/sources/contrib/quanstro/rio
>
> ; 9diff wind.c
> /n/sources/plan9//sys/src/cmd/rio/wind.c:710,716 - wind.c:710,716
> {
> wsetcols(w);
> if(!w->mouseopen)
> - _frredraw(w, w->Frame.r.min, w->cols[TEXT], nil);
> + _frredraw(w, w->Frame.r.min, w->cols[TEXT], w->cols[BACK]);
> if(w == input){
> wborder(w, Selborder);
> wsetcursor(w, 0);
>
> - erik
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Re: ttf2subf + VeraMono rendering
2007-08-15 16:14 ` Uriel
@ 2007-08-16 13:42 ` erik quanstrom
2007-08-16 17:02 ` geoff
0 siblings, 1 reply; 8+ messages in thread
From: erik quanstrom @ 2007-08-16 13:42 UTC (permalink / raw)
To: 9fans
i did, and it was applied about may 20, 2006.
/n/sources/patch/applied/libframe-alpha
i don't know why it got lost.
- erik
On Wed Aug 15 12:14:22 EDT 2007, uriel99@gmail.com wrote:
> Why not submit a patch?
>
> uriel
>
> On 8/13/07, erik quanstrom <quanstro@coraid.com> wrote:
> > > > you need an updated rio/libframe/devdraw. the problem is that libframe
> > > > this was fixed may 15, 2006, i believe. i use a subpixel antialiased font.
> > > > (/n/sources/contrib/quanstro/antialias.tar /lib/font/bit/cyberbit/mod14.font)
> > > >
> > > I have the newest setup i guess, did a pull today morning as well, is
> > > this some other libframe which does not come with official plan9
> > > distribution?
> > >
> > > /Prem
> >
> > i thought i was using the one from the distribution. it turns out there is a
> > difference. i will put my copy on sources /n/sources/contrib/quanstro/rio
> >
> > ; 9diff wind.c
> > /n/sources/plan9//sys/src/cmd/rio/wind.c:710,716 - wind.c:710,716
> > {
> > wsetcols(w);
> > if(!w->mouseopen)
> > - _frredraw(w, w->Frame.r.min, w->cols[TEXT], nil);
> > + _frredraw(w, w->Frame.r.min, w->cols[TEXT], w->cols[BACK]);
> > if(w == input){
> > wborder(w, Selborder);
> > wsetcursor(w, 0);
> >
> > - erik
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9fans] Re: ttf2subf + VeraMono rendering
2007-08-16 13:42 ` erik quanstrom
@ 2007-08-16 17:02 ` geoff
0 siblings, 0 replies; 8+ messages in thread
From: geoff @ 2007-08-16 17:02 UTC (permalink / raw)
To: 9fans
It supposedly got applied; see /n/sources/patch/applied/libframe-alpha.
I'll take another look.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-08-16 17:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-13 9:30 [9fans] ttf2subf + VeraMono rendering prem
2007-08-13 10:28 ` Adrian Tritschler
2007-08-13 11:25 ` erik quanstrom
2007-08-13 13:12 ` [9fans] " prem
2007-08-13 13:59 ` erik quanstrom
2007-08-15 16:14 ` Uriel
2007-08-16 13:42 ` erik quanstrom
2007-08-16 17:02 ` geoff
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).