Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: plugin: get current OSD font height
Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> wrote:
> 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.
oh, sorry. i totally overlooked the fakt, that the cOsd methods are
static. now its clear.
thanx ...
clemens
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index