#8129: BTextControl , SetFontSize() doesnt work? ----------------------------------+-------------------------- Reporter: cipri | Owner: axeld Type: bug | Status: closed Priority: normal | Milestone: R1 Component: Kits/Interface Kit | Version: R1/alpha3 Resolution: invalid | Keywords: BTextControl Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------------+-------------------------- Comment (by jackburton): Replying to [comment:3 jackburton]: > Invalid: as you half guessed, to change font and/or color in a BTextView, you can only use SetFontAndColor(), and not SetFont() or SetFontSize(). Forgot this: If you only need to change the font size, you have to do something like this: (given that "textView" holds a pointer to your BTextView) {{{ BFont font; textView->GetFontAndColor(0, &font, NULL); font.SetSize(18); textView->SetFontAndColor(&font, B_FONT_SIZE, NULL); }}} This is also true for any other property of the font. Hope this helps. -- Ticket URL: <http://dev.haiku-os.org/ticket/8129#comment:5> Haiku <http://dev.haiku-os.org> Haiku - the operating system.