RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: srinivas57
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
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