[haiku-commits] Re: r40174 - haiku/trunk/src/servers/app

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 09 Jan 2011 16:03:38 +0100

"Michael Lotz" <mmlr@xxxxxxxx> wrote:
> > mmlr@xxxxxxxx wrote:
> > > +inline bool
> > > +render_as_zero_width(uint32 glyphCode)
> > > +{
> > > + // ignorable chars: render as invisible
> > > + // as per Unicode DerivedCoreProperties.txt: 
> > > Default_Ignorable_Code_Point
> > > + return (glyphCode == 0x00ad)
> > > +                 // soft hyphen
> > While I think BUnicodeChar may already provide this functionality,
> It doesn't. I checked that, but these are all more or less assembled 
> glyph codes (hence derived core properties) and they do not really 
> have 
> a common core property.

Alright, I thought at least the space thing would have been covered.

> > I 
> > guess checking the "normal" ISO character span first may speed 
> > things 
> > up a bit, if needed.
> It might, but since this is only happening in case both the actual 
> font 
> and the fallback font fail to provide the glyph, I thought it's rather 
> neglible (especially seeing that most any font, including our current 
> default fallback, includes those glyphs, resulting in this code never 
> being reached).

Indeed, makes sense.

Bye,
   Axel.


Other related posts: