Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
font-discovery.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 

Enumerations

enum  Inkscape::FontCacheFlags : int {
  Inkscape::Normal = 0 , Inkscape::Monospace = 0x01 , Inkscape::Oblique = 0x02 , Inkscape::Variable = 0x04 ,
  Inkscape::Synthetic = 0x08
}
 

Functions

double Inkscape::calculate_font_weight (Pango::FontDescription &desc, double caps_height)
 
double Inkscape::calculate_font_width (Pango::FontDescription &desc)
 
Glib::ustring Inkscape::get_full_font_name (Glib::RefPtr< Pango::FontFamily > ff, Glib::RefPtr< Pango::FontFace > face)
 
int Inkscape::get_font_style_order (const Pango::FontDescription &desc)
 
void Inkscape::sort_fonts_by_name (std::vector< FontInfo > &fonts, bool sans_first)
 
void Inkscape::sort_fonts (std::vector< FontInfo > &fonts, FontOrder order, bool sans_first)
 
Glib::ustring Inkscape::get_fontspec (const Glib::ustring &family, const Glib::ustring &face, const Glib::ustring &variations)
 
Glib::ustring Inkscape::get_fontspec (const Glib::ustring &family, const Glib::ustring &face)
 
Glib::ustring Inkscape::get_face_style (const Pango::FontDescription &desc)
 
Glib::ustring Inkscape::get_inkscape_fontspec (const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face, const Glib::ustring &variations)
 
Pango::FontDescription Inkscape::get_font_description (const Glib::RefPtr< Pango::FontFamily > &ff, const Glib::RefPtr< Pango::FontFace > &face)
 
void Inkscape::save_font_cache (const std::vector< FontInfo > &fonts)
 
std::unordered_map< std::string, FontInfoInkscape::load_cached_font_info ()
 
std::vector< FontInfoInkscape::get_all_fonts ()
 
std::shared_ptr< const std::vector< FontInfo > > Inkscape::get_all_fonts (Async::Progress< double, Glib::ustring, std::vector< FontInfo > > &progress)
 
Glib::ustring Inkscape::get_fontspec_without_variants (const Glib::ustring &fontspec)
 

Variables

const char Inkscape::font_cache [] = "font-cache.ini"
 
const char Inkscape::cache_header [] = "@font-cache@"
 
constexpr auto Inkscape::cache_version = 1.0