Lines Matching defs:font

244 set_font_face(BFont &font, uint16 face, bool on)
249 if (font.Face() == B_REGULAR_FACE && on)
250 font.SetFace(face);
251 else if ((font.Face() & ~face) == 0 && !on)
252 font.SetFace(B_REGULAR_FACE);
254 font.SetFace(font.Face() | face);
256 font.SetFace(font.Face() & ~face);
271 && a->font == b->font;
286 newRun->font = run->font;
304 printf("run: offset = %ld, color = {%d,%d,%d}, font = ",
306 run->font.PrintToStream();
429 fCurrentRun->font = last->font;
460 set_font_face(fCurrentRun->font, B_BOLD_FACE, command->Option() != 0);
464 set_font_face(fCurrentRun->font, B_ITALIC_FACE, command->Option() != 0);
468 set_font_face(fCurrentRun->font, B_UNDERSCORE_FACE, command->Option() != 0);
470 // font size in half points
472 fCurrentRun->font.SetSize(command->Option() / 2.0);
474 // reset font to plain style
476 fCurrentRun->font = be_plain_font;
478 // font number
484 BFont font;
485 // missing font info will be replaced by the default font
493 // ToDo: really try to choose font by name and serif/sans-serif
494 // ToDo: the font list should be built before once
498 font = be_fixed_font;
503 font.GetFamilyAndStyle(&family, &style);
505 fCurrentRun->font.SetFamilyAndFace(family, fCurrentRun->font.Face());
732 // RTF needs us to mention font and color names in advance so
740 styles->runs[i].font.GetFamilyAndStyle(&out, NULL);
766 // Find font and color indices
767 styles->runs[i].font.GetFamilyAndStyle(&out, NULL);
774 // Apply various font styles
775 uint16 fontFace = styles->runs[i].font.Face();
783 // RTF font size unit is half-points, but BFont::Size() returns
786 << static_cast<int>(styles->runs[i].font.Size() * 2);