where can I get the textmate rails theme and font used on Railscast?
5 seconds on google reveal that there is a link to the complete theme on the railscasts.com site itself (http://railscasts.com/about).
BAH. Found both here http://mattonrails.tumblr.com/post/210920872/inconsolata-font
font is Inconsolata monospace
Theme is also linked above
This is the link to Ryans Railscasts Theme:
_http://media.railscasts.com/resources/textmate_theme.zip
This is the link to Bitstream Vera Sans Mono Font he uses:
_http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ttf-bitstream-vera-1.10.zip
Font-wise I would prefer DejaVu Sans Mono (it is based on Bitstream but has more characters):
_http://dejavu-fonts.org/wiki/Download
I'm not sure about the theme (couldn't find a theme with the exact same colors), but it looks like it's the Menlo font with the size of about 12-14 pt. I'm using the built-in Pastels on Dark theme and it looks quite similar. You could change some of the colors to match your taste.
Monaco seems like an awesome font to use for programming. A monospace font is a must while coding since it can maintain the indentations properly.
The themes where pushed to github by Ryan
Related
I can happily use jspdf to add fonts to a pdf. For that so far I add a font for regular, one for italic, one for bold and one for bolditalic in my case.
Now I have some fonts that do not provide these different fonts but variable ttf-fonts and I struggle to use those with JSPDF.
So far my solution goes like this:
pdf.addFileToVFS(`${fontFamily}-bold.ttf`, fontBase64Data);
pdf.addFont(`${fontFamily.ttf}-bold.ttf, fontFamily, 'bold', 700);
where I read fontBase64 data from file (which works nicely for regaulr, italic etc) and do the same with the regular and italic fonts...
For variable fonts I tried to add a font with variable font weight with above code just use the fontBase64Data as I read it from the ttf file of variable font.
However that just leaves the font regular.
To my understanding that alos makes sense as the API of addFonts seems to associate a loaded font with a font weight it represents, but does not seem to apply a font weight to the font.
Since I want to use variable fonts however I seem to need to either
set a font as variable font, so weight would be automatically applied
apply a weight to the variable font via api and then define that as bold
So far I couldn't find any of that. Am I missing sth or are variable font weights currently not supported yet by jspdf?
Cheers
Tom
I have a chart with the data label font set as 'Gill sans'. However when i export the chart to png the font changes. Is Gill sans not supported for export? IE8 used.
At this moment we cannot add extra font, but please request your idea on our uservoice website highcharts.uservoice.com.
How to set the font generated from a beamer latex file to Times New Roman in preamble?
Thanks!
Just go here: http://www.ctan.org/tex-archive/info/Free_Math_Font_Survey/survey.html, choose the most similar font to the one you want and add
\includepackage{fontname}
in the preamble
you can try also with \includepackage{times} but I don't know if it's the font you want..
The times package is obsolete. Better use mathptmx with Times Roman as default text font and supporting math as well:
\usepackage{mathptmx}
Btw. the default warnings (including font warning) would appear with Times as well. To get rid of it see Removing beamer warnings.
I have a font which only has a regular weight… I’d like to use another font as the bold weight and another as the italic weight… and have sifr use the extra fonts as a replacement based on strong and or b tags
I’ve tried embedding the multiple fonts in the .swf but only the regular weight get’s applied when sifr is activated. If I have two separate .swf font files I can the text to generate in either font but can't seem to apply the bold version to the bold text in the sentence.
Is their a smarter way to do this? using sifr3 - r436 with CS3 Flash Professional to create the font files
Okay after an hour os do googling various terms I found this
http://discuss.joyent.com/viewtopic.php?id=24567
which answers my question - I now have the whole family embedded as I need
Thanks
R
I can get sIFR to work but it will only display the bold version of the font I have exported. I checked the report and it seems to be stripping out any font weight that is not bolded in flash. I exported two different files to test, the first with regular and bold and the second with medium and semibold in both cases only the bolded weights were exported. Any ideas on how to fix this?
When exporting the Flash movie, make sure at least one character in the text field has the styles applied to it. Then it should export fine.
I had a similar problem - could not make the font 'bold' style work, and I even whanted my fonts BlackItalic to work. Messing around and reading your post and Marks answer made me try to apply the BlackItalic style to the very first word in the provided fla file. Keeping the css style 'font-weight: normal;' in the config java code was successful!
Until I read some new posts about this I will follow the work flow making individual swf files for every font style - normally I only want to use one or to styles anyway.