Using .otf fonts on web browsers

You can implement your OTF font using @font-face like: @font-face { font-family: GraublauWeb; src: url(“path/GraublauWeb.otf”) format(“opentype”); } @font-face { font-family: GraublauWeb; font-weight: bold; src: url(“path/GraublauWebBold.otf”) format(“opentype”); } // Edit: OTF now works in most browsers, see comments However if you want to support a wide variety of browsers i would recommend you to switch to … Read more

How to add some non-standard font to a website?

This could be done via CSS: <style type=”text/css”> @font-face { font-family: “My Custom Font”; src: url(http://www.example.org/mycustomfont.ttf) format(“truetype”); } p.customfont { font-family: “My Custom Font”, Verdana, Tahoma; } </style> <p class=”customfont”>Hello world!</p> It is supported for all of the regular browsers if you use TrueType-Fonts (TTF), the Web Open Font Format (WOFF) or Embedded Opentype (EOT).

CSS Font Border?

There’s an experimental CSS property called text-stroke, supported on some browsers behind a -webkit prefix. h1 { -webkit-text-stroke: 2px black; /* width and color */ font-family: sans; color: yellow; } <h1>Hello World</h1> Another possible trick would be to use four shadows, one pixel each on all directions, using property text-shadow: h1 { /* 1 pixel … Read more

Can I underline text in an Android layout?

It can be achieved if you are using a string resource xml file, which supports HTML tags like <b></b>, <i></i> and <u></u>. <resources> <string name=”your_string_here”><![CDATA[This is an <u>underline</u>.]]></string> </resources> If you want to underline something from code use: TextView textView = (TextView) view.findViewById(R.id.textview); SpannableString content = new SpannableString(“Content”); content.setSpan(new UnderlineSpan(), 0, content.length(), 0); textView.setText(content);

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