How to use the computer modern font in webpages?

Using the Computer Modern font in webpages has become very easy! Just paste the following lines of CSS code in the head section of your html code in order to activate the sans-serif version of that font. <style type=”text/css”> @font-face { font-family: “Computer Modern”; src: url(‘http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf’); } @font-face { font-family: “Computer Modern”; src: url(‘http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunsx.otf’); font-weight: … Read more

How to change font color of the title in grouped type UITableView?

If you just need to change the color or font on the header, use tableView: willDisplayHeaderView: forSection:. Here is an example in swift: Swift v5: override public func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) { if let view = view as? UITableViewHeaderFooterView { view.backgroundView?.backgroundColor = UIColor.blue view.textLabel?.backgroundColor = UIColor.clear view.textLabel?.textColor = UIColor.white … Read more

GLYPHICONS – bootstrap icon font hex value

We can find these by looking at Bootstrap’s stylesheet, Bootstrap.css. Each \{number} represents a hexadecimal value, so \2a is equal to 0x2a or &#x2a;. As for the font, that can be downloaded from http://glyphicons.com. .glyphicon-asterisk:before { content: “\2a”; } .glyphicon-plus:before { content: “\2b”; } .glyphicon-euro:before { content: “\20ac”; } .glyphicon-minus:before { content: “\2212”; } .glyphicon-cloud:before … Read more

Change UIDatePicker font color?

All I need (on iOS 8.x and 9.0) is this one line to change the font color: [my_date_picker setValue:[UIColor whiteColor] forKey:@”textColor”]; No subclassing or invoking of private APIs… Note: today’s current date will still be highlighted (in newer iOS versions). You can get around this by using the following code: if ([my_date_picker respondsToSelector:sel_registerName(“setHighlightsToday:”)]) { #pragma … Read more

Correct Apache AddType directives for font MIME types

I realize that this question is old, but for anyone looking for a quick copy/paste for adding font MIME types to their .htaccess: <IfModule mod_mime.c> AddType application/vnd.ms-fontobject .eot AddType application/x-font-opentype .otf AddType image/svg+xml .svg AddType application/x-font-ttf .ttf AddType application/font-woff .woff AddType application/font-woff2 .woff2 </IfModule>

Using font in XML in API < 26

To support font family on API lower than 26, we need to use <font app:fontStyle=”normal” app:fontWeight=”400″ app:font=”@font/myfont-Regular”/> instead of <font android:fontStyle=”normal” android:fontWeight=”400″ android:font=”@font/myfont-Regular”/>

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