I am printing some text in Khmer language onto a pdf and the lower part of the text is cut out and replaced by a + sign. Is there a way to increase the line height based on the type of font used?
The code I used is as below:
font_families.update(
'KhmerOS' => {
normal: "#{Rails.root}/app/pdfs/fonts/KhmerOS.ttf"
}
)
font('KhmerOS') do
text "កម្ពុជា"
end
The output is in attached png image. The lower part of the second character is cut out and replaced with a + sign. If I copy the output on the pdf and paste it onto TextEdit, the lower part shows up as expected.
Any guidance in the right direction is appreciated. Thank you.