[haiku-development] Re: Terminal bold attribute rendering

  • From: zharik@xxxxxx
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 14 Feb 2013 18:25:59 +0100

-------- Original-Nachricht --------
> Datum: Thu, 14 Feb 2013 16:57:22 +0100
> Von: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>

> On 02/14/2013 03:37 PM, zharik@xxxxxx wrote:
> > In the latest uncommited changes I have introduced additional BFont 
> > variable to store
> > bold version of terminal font and used it to draw corresponding strings.
> > The width value for both variants are the same so no visual issues and
 glitches were observed
> > on normal and alternate buffer applications (like Midnight Commander).
> > Are there any objections to use this way?
> 
> That would be the preferred way IMO. I would simply always use the same 
> font in a bold version. If that isn't available, or has a different 
> width, we could still fall back to the BeOS way.

Our current DejaVu Mono has the same [Escapements] width both for normal and 
bold faces. So there are no problems using them simultaneously for rendering 
normal/bold characters. The problem comes when a) user select either font 
without corresponding bold version (VLGothic for example), or b) user select 
the bold version of the font to render all (normal) characters. In such cases 
we will have no differences in rendering normal and bold characters. The case 
'b' can be partly avoided by supressing bold versions of fonts from the list of 
available in Terminal settings, I think.


-- 
Kind Regards,
  S.Zharski


Other related posts: