[#3]
Re: Jak podpiac font wybrany z requestera do ListView?
@peceha,
post #1
Spróbuj użyć funkcji AskFont(). Pobiera ona TextAttr, ale z RastPortu (nie bezpośrednio z TextFont).
Poniżej ustawiam najpierw czcionkę w RastPorcie, a następnie używam funkcji AskFont() by wypełnić TextAttr.
void askFont(struct TextAttr *textattr, struct TextFont *textfont)
{
struct RastPort rastport;
InitRastPort(&rastport);
SetFont(&rastport, textfont);
AskFont(&rastport, textattr);
}
P.S. Rzeczywiście, Krashan dobrze zauważył, że masz tam TextAttr.
Ostatnia aktualizacja: 19.09.2019 20:39:08 przez Hexmage960