Codechange: remove duplicate and out-of-date documentation for LoadFont (#15411)

Move comments inline to code where useful.
This commit is contained in:
Peter Nelson
2026-04-02 12:20:46 +01:00
committed by GitHub
parent 3efaeb0eea
commit 36878bfbc8
3 changed files with 8 additions and 25 deletions
-9
View File
@@ -220,15 +220,6 @@ public:
_ft_library = nullptr;
}
/**
* Loads the freetype font.
* First try to load the fontname as if it were a path. If that fails,
* try to resolve the filename of the font using fontconfig, where the
* format is 'font family name' or 'font family name, font style'.
* @param fs The font size to load.
* @param fonttype The type of font that is requested to be loaded.
* @return The loaded font, or \c nullptr when none could be loaded.
*/
std::unique_ptr<FontCache> LoadFont(FontSize fs, FontType fonttype) const override
{
if (fonttype != FontType::TrueType) return nullptr;