How to use fonts in Rails 4

Your @font-face declaration is very close, you are just missing the /assets prefix within the url declaration. @font-face { font-family: ‘HDVPeace’; src: url(‘/assets/HDV_Peace.eot’); src: url(‘/assets/HDV_Peace.eot?iefix’) format(‘eot’), url(‘/assets/HDV_Peace.woff’) format(‘woff’), url(‘/assets/HDV_Peace.ttf’) format(‘truetype’), url(‘/assets/HDV_Peace.svg#webfont’) format(‘svg’); } Anything that has been added to assets.paths is available directly under the /assets path in both development and production. You only need … Read more

How can I convert .svg files to a font? [closed]

I found two relevant answers here on Stack Overflow: Creating icon fonts with vector software (i.e. inkscape) and fontforge? Tools to convert svg to ttf [closed] (archived from this deleted SO question) Unfortunately, neither is really a coding answer, which is what I had really hoped for (a command line utility for scripted conversion or … Read more

What is a monospace font in iOS?

iOS mono-spaced fonts Courier Courier-Bold Courier-BoldOblique Courier-Oblique CourierNewPS-BoldItalicMT CourierNewPS-BoldMT CourierNewPS-ItalicMT CourierNewPSMT Menlo-Bold Menlo-BoldItalic Menlo-Italic Menlo-Regular iosfonts.com maintain a list of all iOS fonts. This webpage detects your installed system fonts and returns a fairly comprehensive list.

What is the default font family in Android?

There is no documentation on d.android.com for font family names. However, if you look at AOSP, the default fonts are loaded in android.graphics.*. The FontListParser loads the default fonts from /system/etc/fonts.xml (Android 5.0+) or /system/etc/system_fonts.xml (Android 4.1). The default fonts are loaded in Typeface#init. The two XML files have some documentation. The first font is … Read more

How do I load external fonts into an HTML document?

Take a look at this A List Apart article. The pertinent CSS is: @font-face { font-family: “Kimberley”; src: url(http://www.princexml.com/fonts/larabie/kimberle.ttf) format(“truetype”); } h1 { font-family: “Kimberley”, sans-serif } The above will work in Chrome/Safari/FireFox. As Paul D. Waite pointed out in the comments you can get it to work with IE if you convert the font … Read more

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