update getFontTable function. make it return table instead of list
merged from master