31std::map<G4VViewer*,std::vector<G4OpenGLFontBaseStore::FontInfo> >
32G4OpenGLFontBaseStore::fFontBaseMap;
38 fFontBaseMap[viewer].push_back(
FontInfo(fontName, size, fontBase, width));
44 std::map<G4VViewer*,std::vector<FontInfo> >::const_iterator i =
45 fFontBaseMap.find(viewer);
46 if (i != fFontBaseMap.end()) {
48 std::vector<FontInfo>::const_iterator j, k;
49 for (j = i->second.begin(); j != i->second.end(); ++j) {
50 G4double d = std::abs(size - j->fSize);
51 if (d < sizeDiscrepancy) {
static void AddFontBase(G4VViewer *, G4int fontBase, G4double size, const G4String &fontName, G4int width)
static const FontInfo & GetFontInfo(G4VViewer *, G4double size)