handle embedded fonts

Change-Id: Ifeb92312aaadf17284c47c25109737cf7ffb6024
replace double negation by bool()

Change-Id: Ibd72d22c86e8960dd3553fa1406098c8138dae36
simplify this

Change-Id: I6a39f76a0019d057b20a4abb29479754ad622b39