{"action":"created","issue":{"url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/39","repository_url":"https://api.github.com/repos/galkahana/PDF-Writer","labels_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/39/comments","events_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/39/events","html_url":"https://github.com/galkahana/PDF-Writer/issues/39","id":148643294,"number":39,"title":"Making use of Base 14 fonts","user":{"login":"raimundomartins","id":4508664,"avatar_url":"https://avatars.githubusercontent.com/u/4508664?v=3","gravatar_id":"","url":"https://api.github.com/users/raimundomartins","html_url":"https://github.com/raimundomartins","followers_url":"https://api.github.com/users/raimundomartins/followers","following_url":"https://api.github.com/users/raimundomartins/following{/other_user}","gists_url":"https://api.github.com/users/raimundomartins/gists{/gist_id}","starred_url":"https://api.github.com/users/raimundomartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raimundomartins/subscriptions","organizations_url":"https://api.github.com/users/raimundomartins/orgs","repos_url":"https://api.github.com/users/raimundomartins/repos","events_url":"https://api.github.com/users/raimundomartins/events{/privacy}","received_events_url":"https://api.github.com/users/raimundomartins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T12:05:53Z","updated_at":"2016-04-18T12:26:51Z","closed_at":null,"body":"How can I create a PDFUsedFont that references one of the Base 14 fonts in pdf?\r\nThe idea is to not embed the fonts, but still have a \"deterministic\" choice of fonts (quite obviously? :P)\r\n\r\nThanks!\r\n\r\nPS: I tried using TfLow(\"Helvetica\", 14); but then mupdf complains that it couldn't find font dictionary. I'm not knowledgeble in pdf specification at all, apart from what I read here."},"comment":{"url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/comments/211357856","html_url":"https://github.com/galkahana/PDF-Writer/issues/39#issuecomment-211357856","issue_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/39","id":211357856,"user":{"login":"raimundomartins","id":4508664,"avatar_url":"https://avatars.githubusercontent.com/u/4508664?v=3","gravatar_id":"","url":"https://api.github.com/users/raimundomartins","html_url":"https://github.com/raimundomartins","followers_url":"https://api.github.com/users/raimundomartins/followers","following_url":"https://api.github.com/users/raimundomartins/following{/other_user}","gists_url":"https://api.github.com/users/raimundomartins/gists{/gist_id}","starred_url":"https://api.github.com/users/raimundomartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raimundomartins/subscriptions","organizations_url":"https://api.github.com/users/raimundomartins/orgs","repos_url":"https://api.github.com/users/raimundomartins/repos","events_url":"https://api.github.com/users/raimundomartins/events{/privacy}","received_events_url":"https://api.github.com/users/raimundomartins/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T12:26:51Z","updated_at":"2016-04-18T12:26:51Z","body":"Nice, thank you for the very detailed response! I think you should include this in the wiki it's already nicely structured.\r\n\r\nI do have a follow-up question: What about metrics? I don't have a handle to PDFUsedFont this way. What would you suggest? I've considered creating a FreeTypeWrapper, calling NewFace and manually creating a PDFUsedFont, but this seems to duplicate work your library already does, and extra FT_Library stuff.\r\n\r\nAn alternative would be to only embed the required fonts. I noticed the WriteState() and WriteFontDefinition() methods of PDFUsedFont. Can I (and how to) use these and StartPDF() without embedding fonts to \"safely/cleanly\" create a PDFUsedFont from PDFWriter and have extra fonts embedded?\r\n\r\nWhich do you htink would be the better method?\r\n\r\nThank you."}}