revamp loading and panels
This commit is contained in:
parent
3631ac8e49
commit
97ca4f5d23
4 changed files with 219 additions and 93 deletions
|
@ -226,5 +226,23 @@ def get_loaded_fonts_and_faces():
|
|||
out.append([f,ff])
|
||||
return out
|
||||
|
||||
MISSING_FONT = 0
|
||||
MISSING_FACE = 1
|
||||
|
||||
def test_availability(font_name, face_name, text):
|
||||
if not fonts.keys().__contains__(font_name):
|
||||
return MISSING_FONT
|
||||
if fonts[font_name].faces.get(face_name) == None:
|
||||
return MISSING_FACE
|
||||
loaded, missing, maybe = test_glyphs_availability(font_name,
|
||||
face_name,
|
||||
text)
|
||||
return {
|
||||
"loaded": loaded,
|
||||
"missing": missing,
|
||||
"maybe": maybe,
|
||||
}
|
||||
|
||||
|
||||
# holds all fonts
|
||||
fonts = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue