Specifying Style and Weight for Google Fonts

They use regular CSS. Just use your regular font family like this: font-family: ‘Open Sans’, sans-serif; Now you decide what “weight” the font should have by adding for semi-bold font-weight:600; for bold (700) font-weight:bold; for extra bold (800) font-weight:800; Like this its fallback proof, so if the google font should “fail” your backup font Arial/Helvetica(Sans-serif) … Read more

WPF Blurry fonts issue- Solutions

.NET 4 finally has a solution to WPF’s poor text rendering quality, but it is well-hidden. Set the following for every window: TextOptions.TextFormattingMode=”Display” Default value is “Ideal” which is not at all what the name implies. There are two other options in TextOptions, namely TextHintingMode and TextRenderingMode, but they both have sensible defaults.

Font Awesome icon inside text input element

Output: HTML: <input name=”txtName” id=”txtName”> <span class=”fa fa-info-circle errspan”></span> CSS: <style type=”text/css”> .errspan { float: right; margin-right: 6px; margin-top: -20px; position: relative; z-index: 2; color: red; } </style> (Or) Output: HTML: <div class=”input-wrapper”> <input type=”text” /> </div> CSS: <style type=”text/css”> .input-wrapper { display:inline-block; position: relative } .input-wrapper:after { font-family: ‘FontAwesome’; content: ‘\f274’; position: absolute; right: … Read more

How to write WinForms code that auto-scales to system font and dpi settings?

Controls which do not support scaling properly: Label with AutoSize = False and Font inherited. Explicitly set Font on the control so it appears in bold in the Properties window. ListView column widths don’t scale. Override the form’s ScaleControl to do it instead. See this answer SplitContainer‘s Panel1MinSize, Panel2MinSize and SplitterDistance properties TextBox with MultiLine … Read more

Set a default font for whole iOS app?

It seems to be possible in iOS 5 using the UIAppearance proxy. [[UILabel appearance] setFont:[UIFont fontWithName:@”YourFontName” size:17.0]]; That will set the font to be whatever your custom font is for all UILabels in your app. You’ll need to repeat it for each control (UIButton, UILabel, etc.). Remember you’ll need to put the UIAppFonts value in … Read more

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