Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

srinivas57's Profile

GitHub User: srinivas57

Comments by

Avatar

Hi Rayn,

I got one issues. pdf kit is support custom fonts. I tried one of project its not taking custom fonts'

here is example:

@font-face {
font-family: 'oswald_regularregular';
src: url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.eot" %>);
src: url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.eot?#iefix" %>) format('embedded-opentype'),
url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.woff2" %>) format('woff2'),
url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.woff" %>) format('woff'),
url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.ttf" %>) format('truetype'),
url(<%= "#{Rails.root}"+"/app/assets/fonts/oswald-regular.svg#oswald_regularregular" %>) format('svg');
font-weight: normal;
font-style: normal;
}

Can you please help us