{"action":"closed","issue":{"url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/41","repository_url":"https://api.github.com/repos/galkahana/PDF-Writer","labels_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/41/comments","events_url":"https://api.github.com/repos/galkahana/PDF-Writer/issues/41/events","html_url":"https://github.com/galkahana/PDF-Writer/issues/41","id":150833657,"number":41,"title":"How to get baseline to baseline distance (new line advance)?","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-25T11:53:06Z","updated_at":"2016-04-30T22:51:37Z","closed_at":"2016-04-30T22:51:37Z","body":"Currently, I'm using freetype directly like so:\r\n```\r\nfloat font_size = 14.;\r\nPDFUsedFont *font = pdfWriter.GetFontForFile(\"font.ttf\");\r\nFT_Face face = *font->GetFreeTypeFont();\r\nfloat newline_height = font_size * face->height / face->units_per_EM;\r\n```\r\nBut I'd rather use PDFUsedFont, and never mess with freetype (what if some other non-freetype format comes along, or what if this has some quirks which doesn't work with all fonts?). Is it possible to use only PDF-Writer objects to achieve this?\r\n\r\nAlso, PDFUsedFont::CalculateTextDimensions receives a long as font size, but Tf operator receives a double. Shouldn't these be consistent?"}}