singalen / plaintxtblog

Automatically exported from code.google.com/p/plaintxtblog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

Add support for @font-face #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a fontface toolkit with open source fonts at 
http://www.fontsquirrel.com/fontface/generator
2. add "fonts" folder with open source fonts in them to plantxtblog theme 
directory
3. add text from fontface toolkit's generated stylesheet to plantxtblog's 
styles.css

What is the expected output? What do you see instead?
b0rks the theme, page breaks 

What version of the product are you using? On what operating system?

Plaintxtblog 4.6.1 on Firefox 4.66 and Google Chrome 5.0.375.86

Please provide any additional information below.

sample txt added to styles.css:

@font-face {
    font-family: 'DejaVuSansBook';
    src: url('dejavusans-webfont.eot');
    src: local('☺'), url('dejavusans-webfont.woff') format('woff'), url('dejavusans-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

Original issue reported on code.google.com by aharon.v...@gmail.com on 30 Jun 2010 at 6:57

GoogleCodeExporter commented 9 years ago
I think the issue that I can't figure out is that even though I've edited the 
styles.css properly, plaintxtblog still inject the following from the theme 
options: 

<style type="text/css" media="screen,projection"> 
/*<![CDATA[*/
/* CSS inserted by plaintxtBlog theme options */
body{font-family:verdana, geneva, sans-serif;font-size:70%;}
body div#content div.hentry{text-align:left;}
body div#content h2,div#content h3,div#content h4,div#content h5,div#content 
h6{font-family:verdana, geneva, sans-serif;}
body div.sidebar{text-align:right;}
body div#container{float:right;margin:0 0 0 -320px;}
body div#content{margin:0 0 0 320px;}
body div#primary{float:left;}
body div#secondary{float:right;margin-right:20px;}
body div.sidebar{border-right:5px solid #ddd;padding-right:15px;}
/*]]>*/
</style> 

So how can I hack the theme options to include the fonts I'd like to add to the 
site. I need to add some special fonts since the site will be using multiple 
languages, some of which are non-latin scripts.

Original comment by aharon.v...@gmail.com on 30 Jun 2010 at 8:19