Lines Matching defs:font

1592 BTextView::SetFontAndColor(const BFont* font, uint32 mode,
1595 SetFontAndColor(fSelStart, fSelEnd, font, mode, color);
1601 const BFont* font, uint32 mode, const rgb_color* color)
1629 _ApplyStyleRange(startOffset, endOffset, mode, font, color);
1727 runArray->runs[i].font = styleRange->runs[i].style.font;
2033 // style's font height or fall back to the plain font.
2034 const BFont* font;
2035 fStyles->GetNullStyle(&font, NULL);
2036 if (font == NULL)
2037 font = be_plain_font;
2040 font->GetHeight(&fontHeight);
2868 new (&runArray->runs[i].font) BFont;
2885 copy->runs[i].font = orig->runs[i].font;
2902 array->runs[i].font.~BFont();
2930 runArray->runs[i].font.GetFamilyAndStyle(&array->styles[i].family,
2933 runArray->runs[i].font.Size());
2935 runArray->runs[i].font.Shear());
2937 runArray->runs[i].font.Face());
2980 runArray->runs[i].font.SetFamilyAndStyle(array->styles[i].family, NULL);
2981 runArray->runs[i].font.SetFamilyAndStyle(NULL, array->styles[i].style);
2983 runArray->runs[i].font.SetSize(B_BENDIAN_TO_HOST_FLOAT(
2985 runArray->runs[i].font.SetShear(B_BENDIAN_TO_HOST_FLOAT(
2991 runArray->runs[i].font.SetFace(face);
3178 \param initialFont The font which the BTextView will use.
3185 BFont font;
3187 GetFont(&font);
3189 font = *initialFont;
3191 _NormalizeFont(&font);
3200 fStyles = new StyleBuffer(&font, initialColor);
3996 const BFont* font = NULL;
3997 fStyles->GetNullStyle(&font, NULL);
4000 font->GetHeight(&fh);
4319 const BFont* font = NULL;
4321 while ((numBytes = fStyles->Iterate(fromOffset, length, fInline, &font,
4330 numBytes, font);
4334 result += font->StringWidth(text, numBytes);
4443 const BFont* font = NULL;
4448 while ((numBytes = fStyles->Iterate(offset, length, fInline, &font,
4450 view->SetFont(font);
5427 /*! Changes the passed in font to be displayable by the object.
5429 Set font rotation to 0, removes any font flag, set font spacing
5430 to \c B_BITMAP_SPACING and font encoding to \c B_UNICODE_UTF8.
5433 BTextView::_NormalizeFont(BFont* font)
5435 if (font) {
5436 font->SetRotation(0.0f);
5437 font->SetFlags(0);
5438 font->SetSpacing(B_BITMAP_SPACING);
5439 font->SetEncoding(B_UNICODE_UTF8);
5459 _ApplyStyleRange(fromOffset, toOffset, B_FONT_ALL, &theRun->font,
5881 const BFont* font, const rgb_color* color, bool syncNullStyle)
5886 if (font != NULL) {
5887 // if a font has been given, normalize it
5888 normalized = *font;
5890 font = &normalized;
5894 // always apply font and color to full range for non-stylable textviews
5903 font, color);
5910 const BFont* font = NULL;
5911 fStyles->GetNullStyle(&font, NULL);
5914 font->GetHeight(&fontHeight);