Example #1
0
	::std::shared_ptr<platform_abstraction::font> platform_abstraction::make_font_from_ttf(const path_type& ttf, double size_pt, const font::font_style& fs)
	{
		::nana::spec::truetype truetype{ ttf };
		if (truetype.font_family().empty())
			return nullptr;

		font_resource(true, ttf);

		return font_factory(truetype.font_family(), size_pt, fs, ttf);
	}
Example #2
0
renderer_i::font sfml2_renderer::make_font(const std::string& name)
{
    return font{new sfml2_font{font_resource(name)}};
}