If a TTF font has the the non embeddable flag set and the user tries nevertheless to embed it in a document, FOP will respect the flag and will not embed the font; however it still generates the resulting document (PDF/PS) leading to unpredictable results (missing glyphs and errors when opening with Adobe Reader). With this patch FOP will throw an exception if a non embeddable font is being embedded.
Created attachment 28189 [details] the patch Note: to see the issue one needs a TTF that is non embeddable (usually due to licensing restrictions).
Patch applied to r1234761. Thanks for this patch.