Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: plugin: get current OSD font height



Clemens Kirchgatterer wrote:
> 
> Marcel Wiesweg <marcel.wiesweg@gmx.de> wrote:
> 
> > Am Freitag, 18. April 2003 21:42 schrieb Clemens Kirchgatterer:
> > > is there a function to get the font size of the OSD? i browsed the
> > > vdr source, but could not find anything suitable. but, maybe i'm
> > > just blind.
> >
> > Do you mean
> > cOsd::LineHeight()  for the font's height and
> > cOsd::CellWidth()  for an average character width or
> > cOsd::Width(uchar) for a specific character's width and
> > cOsdBase::Width(const char *s) , not static, for the width of a string
> 
> yes i saw them too, but in can't access them from within a plugin, where
> i just have a pointer to the global cOsdBase object. thus, i can
> calculate the width of as string with cOsdBase::Width() but the Height
> stays unknown. klaus?

VDR assumes that all fonts have the same height, and that's what
so cOsd::LineHeight() (a static function) returns.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index