Home
last modified time | relevance | path

Searched refs:font_ (Results 1 – 25 of 802) sorted by relevance

12345678910>>...33

/dports/editors/featherpad/FeatherPad-1.0.1/featherpad/
H A DfontDialog.cpp28 font_ (font) in FontDialog()
34 bool codingFont = !font_.italic() && font_.weight() == QFont::Normal in FontDialog()
57 int weight = font_.weight(); in FontDialog()
96 ui->lineEdit->setFont (font_); in FontDialog()
103 font_ = curFont; in FontDialog()
105 font_.setWeight (weight); in FontDialog()
106 font_.setItalic (italic); in FontDialog()
111 font_ = curFont; in FontDialog()
117 font_.setPointSize (value); in FontDialog()
150 font_.setItalic (false); in FontDialog()
[all …]
/dports/devel/sdl2pp/libSDL2pp-0.16.1/SDL2pp/
H A DFont.cc48 if (font_ != nullptr) in ~Font()
49 TTF_CloseFont(font_); in ~Font()
52 Font::Font(Font&& other) noexcept : font_(other.font_) { in Font()
53 other.font_ = nullptr; in Font()
59 if (font_ != nullptr) in operator =()
60 TTF_CloseFont(font_); in operator =()
61 font_ = other.font_; in operator =()
62 other.font_ = nullptr; in operator =()
67 return font_; in Get()
107 return TTF_FontHeight(font_); in GetHeight()
[all …]
/dports/math/qtiplot-doc/qtiplot-0.9.8.9/3rdparty/qwtplot3d/src/
H A Dqwt3d_label.cpp33 font_ = QFont(); in init()
47 if ( font_ == f ) { in setFont()
50 font_ = f; in setFont()
158 p.setFont( font_ ); in createImage()
230 if (font_.bold() && font_.italic ()) in fontname()
234 else if (font_.bold()) in fontname()
236 } else if (font_.family() == "Courier" || font_.family() == "Courier New"){ in fontname()
238 if (font_.bold() && font_.italic ()) in fontname()
242 else if (font_.bold()) in fontname()
245 if (font_.bold() && font_.italic ()) in fontname()
[all …]
/dports/games/wesnoth/wesnoth-1.14.17/src/font/pango/
H A Dfont.hpp27 : font_(pango_font_description_new()) in p_font()
29 pango_font_description_set_family(font_, name.c_str()); in p_font()
30 pango_font_description_set_size(font_, size * PANGO_SCALE); in p_font()
34 pango_font_description_set_style(font_, PANGO_STYLE_ITALIC); in p_font()
37 pango_font_description_set_weight(font_, PANGO_WEIGHT_BOLD); in p_font()
48 ~p_font() { pango_font_description_free(font_); } in ~p_font()
50 PangoFontDescription* get() { return font_; } in get()
53 PangoFontDescription *font_; member in font::p_font
/dports/graphics/bonzomatic/Bonzomatic-2021-03-07/external/scintilla/cocoa/
H A DPlatCocoa.h99 …void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourDe…
101 …void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, const char *s, int len, ColourD…
104 void MeasureWidths(Font &font_, const char *s, int len, XYPOSITION *positions);
105 XYPOSITION WidthText(Font &font_, const char *s, int len);
106 XYPOSITION WidthChar(Font &font_, char ch);
107 XYPOSITION Ascent(Font &font_);
108 XYPOSITION Descent(Font &font_);
109 XYPOSITION InternalLeading(Font &font_);
110 XYPOSITION ExternalLeading(Font &font_);
111 XYPOSITION Height(Font &font_);
[all …]
/dports/games/xgalaga++/xgalaga++-0.9/
H A Dscore.cc32 , font_ (X11::Inst().LoadQueryFont("*-helvetica-*-r-*-*-12-*")) in Score()
34 if (!font_) { in Score()
35 font_ = X11::Inst().LoadQueryFont("fixed"); in Score()
36 if (!font_) throw std::runtime_error ("X font error"); in Score()
48 X11::Inst().FreeFont(font_); in ~Score()
62 X11::Inst().SetFont(font_->fid); in Draw()
71 X11::Inst().SetFont(font_->fid); in Mask()
80 X11::Inst().SetFont(font_->fid); in DrawLevel()
84 pos.x -= XTextWidth(font_, ost.str().c_str(), ost.str().size()) / 2; in DrawLevel()
91 return X11::Inst().WindowHeight() - font_->descent; in PosY()
/dports/games/frogatto/frogatto-1.3.1/src/
H A Dgraphical_font_label.cpp8 : text_(text), font_(graphical_font::get(font)), size_(size) in graphical_font_label()
11 ASSERT_LOG(font_.get(), "UNKNOWN FONT: " << font); in graphical_font_label()
19 font_ = graphical_font::get(v["font"].as_string()); in graphical_font_label()
20 ASSERT_LOG(font_.get(), "UNKNOWN FONT: " << v["font"].as_string()); in graphical_font_label()
27 font_->draw(x(), y(), text_, size_); in handle_draw()
32 rect dim = font_->dimensions(text_, size_); in reset_text_dimensions()
47 font_ = graphical_font::get(v.as_string()); in set_value()
48 ASSERT_LOG(font_.get(), "UNKNOWN FONT: " << v.as_string()); in set_value()
62 return variant(font_->id()); in get_value()
/dports/multimedia/butt/butt-0.1.27/src/FLTK/
H A DFl_ILM216.cpp348 if (font_[i]) in ~Fl_ILM216()
349 delete font_[i]; in ~Fl_ILM216()
418 if (font_[chars_[i + 0]]) in draw()
419 font_[chars_[i + 0]]->draw(X + i * 24, Y); in draw()
420 if (font_[chars_[i + 16]]) in draw()
421 font_[chars_[i + 16]]->draw(X + i * 24, Y + 40); in draw()
445 if (font_[ch]) in load_char()
447 delete font_[ch]; in load_char()
448 font_[ch] = 0; in load_char()
535 font_[ch] = new Fl_Bitmap(fdata_[ch - ' '], 20, 32); in load_char()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/fonts/shaping/
H A Dcaching_word_shaper.cc40 return font_.GetShapeCache(); in GetShapeCache()
50 CachingWordShapeIterator iterator(GetShapeCache(), run, &font_); in Width()
105 ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in OffsetForPosition()
113 ShapeResultsForRun(GetShapeCache(), &font_, run_info.run, buffer); in FillResultBuffer()
120 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in GetCharacterRange()
129 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in IndividualCharacterRanges()
142 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in IndividualCharacterAdvances()
150 ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in GetRunFontData()
158 ShapeResultsForRun(GetShapeCache(), &font_, emphasis_mark_run, &buffer); in EmphasisMarkGlyphData()
160 return buffer.EmphasisMarkGlyphData(font_.GetFontDescription()); in EmphasisMarkGlyphData()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/fonts/shaping/
H A Dcaching_word_shaper.cc40 return font_.GetShapeCache(); in GetShapeCache()
50 CachingWordShapeIterator iterator(GetShapeCache(), run, &font_); in Width()
105 ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in OffsetForPosition()
113 ShapeResultsForRun(GetShapeCache(), &font_, run_info.run, buffer); in FillResultBuffer()
120 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in GetCharacterRange()
129 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in IndividualCharacterRanges()
142 float total_width = ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in IndividualCharacterAdvances()
150 ShapeResultsForRun(GetShapeCache(), &font_, run, &buffer); in GetRunFontData()
158 ShapeResultsForRun(GetShapeCache(), &font_, emphasis_mark_run, &buffer); in EmphasisMarkGlyphData()
160 return buffer.EmphasisMarkGlyphData(font_.GetFontDescription()); in EmphasisMarkGlyphData()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/layout/svg/
H A Dsvg_text_layout_engine_spacing.cc29 : font_(font), last_character_(0), effective_zoom_(effective_zoom) { in SVGTextLayoutEngineSpacing()
37 if (!font_.GetFontDescription().LetterSpacing() && in CalculateCSSSpacing()
38 !font_.GetFontDescription().WordSpacing()) in CalculateCSSSpacing()
41 float spacing = font_.GetFontDescription().LetterSpacing(); in CalculateCSSSpacing()
42 if (font_.GetFontDescription().WordSpacing()) { in CalculateCSSSpacing()
45 spacing += font_.GetFontDescription().WordSpacing(); in CalculateCSSSpacing()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/layout/svg/
H A Dsvg_text_layout_engine_spacing.cc29 : font_(font), last_character_(0), effective_zoom_(effective_zoom) { in SVGTextLayoutEngineSpacing()
37 if (!font_.GetFontDescription().LetterSpacing() && in CalculateCSSSpacing()
38 !font_.GetFontDescription().WordSpacing()) in CalculateCSSSpacing()
41 float spacing = font_.GetFontDescription().LetterSpacing(); in CalculateCSSSpacing()
42 if (font_.GetFontDescription().WordSpacing()) { in CalculateCSSSpacing()
45 spacing += font_.GetFontDescription().WordSpacing(); in CalculateCSSSpacing()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/content/browser/renderer_host/pepper/
H A Dpepper_truetype_font_host.cc31 font_ = PepperTrueTypeFont::Create(); in PepperTrueTypeFontHost()
40 base::BindOnce(&PepperTrueTypeFont::Initialize, font_, actual_desc), in PepperTrueTypeFontHost()
48 task_runner_->ReleaseSoon(FROM_HERE, std::move(font_)); in ~PepperTrueTypeFontHost()
68 if (!font_.get()) in OnHostMsgGetTableTags()
75 base::BindOnce(&PepperTrueTypeFont::GetTableTags, font_, tags), in OnHostMsgGetTableTags()
87 if (!font_.get()) in OnHostMsgGetTable()
96 base::BindOnce(&PepperTrueTypeFont::GetTable, font_, table, offset, in OnHostMsgGetTable()
112 font_ = nullptr; in OnInitializeComplete()
124 DCHECK(font_.get() || result != PP_OK); in OnGetTableTagsComplete()
137 DCHECK(font_.get() || result != PP_OK); in OnGetTableComplete()
/dports/www/chromium-legacy/chromium-88.0.4324.182/content/browser/renderer_host/pepper/
H A Dpepper_truetype_font_host.cc31 font_ = PepperTrueTypeFont::Create(); in PepperTrueTypeFontHost()
40 base::BindOnce(&PepperTrueTypeFont::Initialize, font_, actual_desc), in PepperTrueTypeFontHost()
48 task_runner_->ReleaseSoon(FROM_HERE, std::move(font_)); in ~PepperTrueTypeFontHost()
68 if (!font_.get()) in OnHostMsgGetTableTags()
75 base::BindOnce(&PepperTrueTypeFont::GetTableTags, font_, tags), in OnHostMsgGetTableTags()
87 if (!font_.get()) in OnHostMsgGetTable()
96 base::BindOnce(&PepperTrueTypeFont::GetTable, font_, table, offset, in OnHostMsgGetTable()
112 font_ = nullptr; in OnInitializeComplete()
124 DCHECK(font_.get() || result != PP_OK); in OnGetTableTagsComplete()
137 DCHECK(font_.get() || result != PP_OK); in OnGetTableComplete()
/dports/textproc/fcitx5-configtool/fcitx5-configtool-5.0.8/src/lib/configwidgetslib/
H A Dfontbutton.cpp26 const QFont &FontButton::font() { return font_; } in font()
31 font_ = font; in setFont()
32 if (font.family() != font_.family()) { in setFont()
33 Q_EMIT fontChanged(font_); in setFont()
35 fontPreviewLabel->setText(fontToString(font_)); in setFont()
36 fontPreviewLabel->setFont(font_); in setFont()
42 chooser->setFont(font_); in selectFont()
/dports/databases/sqlitebrowser/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/
H A DPlatQt.cpp199 XYPOSITION Ascent(Font &font_);
200 XYPOSITION Descent(Font &font_);
201 XYPOSITION InternalLeading(Font &font_) {Q_UNUSED(font_); return 0;} in InternalLeading() argument
202 XYPOSITION Height(Font &font_);
218 QFontMetricsF metrics(Font &font_);
538 QFont *f = PFont(font_.GetID()); in drawText()
639 return metrics(font_).ascent(); in Ascent()
649 return metrics(font_).descent() + 1; in Descent()
654 return metrics(font_).height(); in Height()
662 return metrics(font_).width('n'); in AverageCharWidth()
[all …]
/dports/games/ponscripter-07th-mod/ponscripter-fork-3.0.0/src/
H A DFontinfo.cpp50 Font* font_[count]; member in FontsStruct
60 font_[i] = NULL; in init()
72 if (font_[i]) delete font_[i]; in ~FontsStruct()
86 if (Fonts.font_[id] != NULL) { in MapFont()
87 delete Fonts.font_[id]; in MapFont()
88 Fonts.font_[id] = NULL; in MapFont()
106 if (font_[style]) return font_[style]; in font()
130 font_[style] = new Font(fpath, metnam); in font()
178 if (font_[style]) { in font()
179 font_[style]->set_size(26); in font()
[all …]
/dports/devel/qscintilla2-qt5/QScintilla_src-2.13.0/src/
H A DPlatQt.cpp188 XYPOSITION Ascent(Font &font_);
189 XYPOSITION Descent(Font &font_);
190 XYPOSITION InternalLeading(Font &font_) {Q_UNUSED(font_); return 0;} in InternalLeading() argument
191 XYPOSITION Height(Font &font_);
207 QFontMetricsF metrics(Font &font_);
521 QFont *f = PFont(font_.GetID()); in drawText()
620 XYPOSITION SurfaceImpl::Ascent(Font &font_) in Ascent() argument
622 return metrics(font_).ascent(); in Ascent()
632 return metrics(font_).descent() + 1; in Descent()
637 return metrics(font_).height(); in Height()
[all …]
/dports/devel/qscintilla2-designerplugin-qt5/QScintilla_src-2.13.0/src/
H A DPlatQt.cpp188 XYPOSITION Ascent(Font &font_);
189 XYPOSITION Descent(Font &font_);
190 XYPOSITION InternalLeading(Font &font_) {Q_UNUSED(font_); return 0;} in InternalLeading() argument
191 XYPOSITION Height(Font &font_);
207 QFontMetricsF metrics(Font &font_);
521 QFont *f = PFont(font_.GetID()); in drawText()
620 XYPOSITION SurfaceImpl::Ascent(Font &font_) in Ascent() argument
622 return metrics(font_).ascent(); in Ascent()
632 return metrics(font_).descent() + 1; in Descent()
637 return metrics(font_).height(); in Height()
[all …]
/dports/devel/py-qt5-qscintilla2/QScintilla_src-2.13.0/src/
H A DPlatQt.cpp188 XYPOSITION Ascent(Font &font_);
189 XYPOSITION Descent(Font &font_);
190 XYPOSITION InternalLeading(Font &font_) {Q_UNUSED(font_); return 0;} in InternalLeading() argument
191 XYPOSITION Height(Font &font_);
207 QFontMetricsF metrics(Font &font_);
521 QFont *f = PFont(font_.GetID()); in drawText()
620 XYPOSITION SurfaceImpl::Ascent(Font &font_) in Ascent() argument
622 return metrics(font_).ascent(); in Ascent()
632 return metrics(font_).descent() + 1; in Descent()
637 return metrics(font_).height(); in Height()
[all …]
/dports/graphics/cfdg/cfdg-3.3_1/src-scintilla/cocoa/
H A DPlatCocoa.h103 …void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDes…
105 …void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDe…
107 …void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, Colo…
108 void MeasureWidths(Font &font_, std::string_view text, XYPOSITION *positions) override;
109 XYPOSITION WidthText(Font &font_, std::string_view text) override;
110 XYPOSITION Ascent(Font &font_) override;
111 XYPOSITION Descent(Font &font_) override;
112 XYPOSITION InternalLeading(Font &font_) override;
113 XYPOSITION Height(Font &font_) override;
114 XYPOSITION AverageCharWidth(Font &font_) override;
/dports/x11-toolkits/scintilla/scintilla/cocoa/
H A DPlatCocoa.h103 …void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDes…
105 …void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDe…
107 …void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, Colo…
108 void MeasureWidths(Font &font_, std::string_view text, XYPOSITION *positions) override;
109 XYPOSITION WidthText(Font &font_, std::string_view text) override;
110 XYPOSITION Ascent(Font &font_) override;
111 XYPOSITION Descent(Font &font_) override;
112 XYPOSITION InternalLeading(Font &font_) override;
113 XYPOSITION Height(Font &font_) override;
114 XYPOSITION AverageCharWidth(Font &font_) override;
/dports/editors/textadept/scintilla/cocoa/
H A DPlatCocoa.h103 …void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDes…
105 …void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDe…
107 …void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, Colo…
108 void MeasureWidths(Font &font_, std::string_view text, XYPOSITION *positions) override;
109 XYPOSITION WidthText(Font &font_, std::string_view text) override;
110 XYPOSITION Ascent(Font &font_) override;
111 XYPOSITION Descent(Font &font_) override;
112 XYPOSITION InternalLeading(Font &font_) override;
113 XYPOSITION Height(Font &font_) override;
114 XYPOSITION AverageCharWidth(Font &font_) override;
/dports/editors/scite/scintilla/cocoa/
H A DPlatCocoa.h103 …void DrawTextNoClip(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDes…
105 …void DrawTextClipped(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, ColourDe…
107 …void DrawTextTransparent(PRectangle rc, Font &font_, XYPOSITION ybase, std::string_view text, Colo…
108 void MeasureWidths(Font &font_, std::string_view text, XYPOSITION *positions) override;
109 XYPOSITION WidthText(Font &font_, std::string_view text) override;
110 XYPOSITION Ascent(Font &font_) override;
111 XYPOSITION Descent(Font &font_) override;
112 XYPOSITION InternalLeading(Font &font_) override;
113 XYPOSITION Height(Font &font_) override;
114 XYPOSITION AverageCharWidth(Font &font_) override;
/dports/games/rlvm/rlvm-release-0.14-77-gfabf134a/src/platforms/gcn/
H A Dgcn_true_type_font.cc49 font_ = NULL; in GCNTrueTypeFont()
51 font_ = TTF_OpenFont(filename.c_str(), size); in GCNTrueTypeFont()
53 if (font_ == NULL) { in GCNTrueTypeFont()
63 GCNTrueTypeFont::~GCNTrueTypeFont() { TTF_CloseFont(font_); } in ~GCNTrueTypeFont()
67 TTF_SizeUTF8(font_, text.c_str(), &w, &h); in getWidth()
73 return TTF_FontHeight(font_) + row_spacing_; in getHeight()
102 textSurface = TTF_RenderUTF8_Blended(font_, text.c_str(), sdlCol); in drawString()
104 textSurface = TTF_RenderUTF8_Solid(font_, text.c_str(), sdlCol); in drawString()

12345678910>>...33