Mercurial > hg > orthanc
changeset 2945:3c636087d060
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Nov 2018 16:35:18 +0100 |
parents | f395460af74d (current diff) 9f6716008066 (diff) |
children | 2e751f615e03 |
files | |
diffstat | 2 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/Images/FontRegistry.cpp Thu Nov 29 16:31:20 2018 +0100 +++ b/Core/Images/FontRegistry.cpp Thu Nov 29 16:35:18 2018 +0100 @@ -88,4 +88,18 @@ return *fonts_[i]; } } + + const Font* FontRegistry::FindFont(const std::string& fontName) const + { + for (Fonts::const_iterator it = fonts_.begin(); it != fonts_.end(); it++) + { + if ((*it)->GetName() == fontName) + { + return *it; + } + } + + return NULL; + } + }