Using a custom (ttf) font in CSS

You need to use the css-property font-face to declare your font. Have a look at this fancy site: http://www.font-face.com/ Example: @font-face { font-family: MyHelvetica; src: local(“Helvetica Neue Bold”), local(“HelveticaNeue-Bold”), url(MgOpenModernaBold.ttf); font-weight: bold; } See also: MDN @font-face

Django – New fonts?

For the directory structure like so, — static |–fonts | |–abc.ttf | |–css |– main.css In the main.css, you should add. @font-face { font-family: ‘abc’; src: local(‘Abc’), url(‘../static/fonts/abc.ttf’) format(“truetype”); } You can’t use {% static ‘filename’ %} inside a css file, since it will not be rendered by the django templating engine. Also, if you … Read more

Change color and font for some part of text in WPF C#

If you just want to do some quick coloring, the simplest solution may be to use the end of the RTB content as a Range and apply formatting to it. For example: TextRange rangeOfText1 = new TextRange(richTextBox.Document.ContentEnd, richTextBox.Document.ContentEnd); rangeOfText1.Text = “Text1 “; rangeOfText1.ApplyPropertyValue(TextElement.ForegroundProperty, Brushes.Blue); rangeOfText1.ApplyPropertyValue(TextElement.FontWeightProperty, FontWeights.Bold); TextRange rangeOfWord = new TextRange(richTextBox.Document.ContentEnd, richTextBox.Document.ContentEnd); rangeOfWord.Text = “word … Read more

Loading Google font in HTTPS, content being blocked

Edit your theme replacing every occurence of http://fonts.googleapis.com/… with https://fonts.googleapis.com/… (mind the s). Resources that might pose a security risk (such as scripts and fonts) must be loaded through a secure connection when requested in the context of a secured page for an obvious reason: they could have been manipulated along the way.

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