How do I use .woff fonts for my website?

After generation of WOFF files, you have to define font-family, which can be used later in all your css styles. Below is the code to define font families (for normal, bold, bold-italic, italic) typefaces. It is assumed, that there are 4 *.WOFF files (for mentioned typefaces), placed in fonts subdirectory. In CSS code: @font-face { … Read more

Font Face isn’t working in IIS 8.0

Great to see WOFF2 being included in Font Squirrel fonts! Whilst IIS 8 does not need a mime type added for WOFF it will need one for WOFF2. The W3C recommends: application/font-woff2 For more info on WOFF2 see here. To add the mime type in IIS, modify your Web.Config as follows: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> … Read more

How to find out which fonts are referenced and which are embedded in a PDF document

pdffonts command line tool originally from Xpdf, now part of Poppler. This tool is available in most Linux distributions as part of poppler-utils package. Example usage and output: $ pdffonts some.pdf name type emb sub uni object ID ———————————— —————– — — — ——— BAAAAA+Arial-Black TrueType yes yes yes 53 0 CAAAAA+Tahoma TrueType yes yes … Read more

Change the font of tab text in android design support TabLayout

If you are using TabLayout and you want to change the font you have to add a new for loop to the previous solution like this: private void changeTabsFont() { ViewGroup vg = (ViewGroup) tabLayout.getChildAt(0); int tabsCount = vg.getChildCount(); for (int j = 0; j < tabsCount; j++) { ViewGroup vgTab = (ViewGroup) vg.getChildAt(j); int … Read more

Changing fonts in ggplot2

You just missed an initialization step I think. You can see what fonts you have available with the command windowsFonts(). For example mine looks like this when I started looking at this: > windowsFonts() $serif [1] “TT Times New Roman” $sans [1] “TT Arial” $mono [1] “TT Courier New” After intalling the package extraFont and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)