/usr/share/qt5/doc/qtquick/qml-font.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmltypereference.qdoc -->
<title>QML Basic Type: font | QtQuick 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li><a href="qtquick-qmltypereference.html">QML Types</a></li>
<li>QML Basic Type: font</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<h1 class="title">QML Basic Type: font</h1>
<span class="subtitle"></span>
<!-- $$$font-description -->
<div class="descr"> <a name="details"></a>
<p>The most commonly used properties are:</p>
<ul>
<li>string <tt>font.family</tt></li>
<li>bool <tt>font.bold</tt></li>
<li>bool <tt>font.italic</tt></li>
<li>bool <tt>font.underline</tt></li>
<li>real <tt>font.pointSize</tt></li>
<li>int <tt>font.pixelSize</tt></li>
</ul>
<p>If both <tt>pointSize</tt> and a <tt>pixelSize</tt> are specified, <tt>pixelSize</tt> will be used.</p>
<p>The following properties are also available:</p>
<ul>
<li>enumeration <tt>font.weight</tt></li>
<li>bool <tt>font.overline</tt></li>
<li>bool <tt>font.strikeout</tt></li>
<li>enumeration <tt>font.capitalization</tt></li>
<li>real <tt>font.letterSpacing</tt></li>
<li>real <tt>font.wordSpacing</tt></li>
</ul>
<p>Example:</p>
<pre class="qml"><span class="type"><a href="qml-qtquick-text.html">Text</a></span> { <span class="name">font</span>.family: <span class="string">"Helvetica"</span>; <span class="name">font</span>.pointSize: <span class="number">13</span>; <span class="name">font</span>.bold: <span class="number">true</span> }</pre>
<p>When integrating with C++, note that any QFont value passed into QML from C++ is automatically converted into a <tt>font</tt> value, and vice-versa.</p>
<p>This basic type is provided by the <a href="qtquick-module.html">QtQuick</a> import.</p>
<p>Font weighting is classified on a scale from 0 to 99, where a weight of 0 is ultralight, and 99 is extremely black. The following values are supported:</p>
<table class="generic">
<tr valign="top" class="odd"><td ><tt>Font.Light</tt></td><td >25</td></tr>
<tr valign="top" class="even"><td ><tt>Font.Normal</tt></td><td >50</td></tr>
<tr valign="top" class="odd"><td ><tt>Font.DemiBold</tt></td><td >63</td></tr>
<tr valign="top" class="even"><td ><tt>Font.Bold</tt></td><td >75</td></tr>
<tr valign="top" class="odd"><td ><tt>Font.Black</tt></td><td >87</td></tr>
</table>
<p>Capitalization supports the following values:</p>
<table class="generic">
<tr valign="top" class="odd"><td ><tt>Font.MixedCase</tt></td><td >No capitalization change is applied.</td></tr>
<tr valign="top" class="even"><td ><tt>Font.AllUppercase</tt></td><td >Alters the text to be rendered in all uppercase type.</td></tr>
<tr valign="top" class="odd"><td ><tt>Font.AllLowercase</tt></td><td >Alters the text to be rendered in all lowercase type.</td></tr>
<tr valign="top" class="even"><td ><tt>Font.SmallCaps</tt></td><td >Alters the text to be rendered in small-caps type.</td></tr>
<tr valign="top" class="odd"><td ><tt>Font.Capitalize</tt></td><td >Alters the text to be rendered with the first character of each word as an uppercase character.</td></tr>
</table>
</div>
<p><b>See also </b>QML Basic Types.</p>
<!-- @@@font -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|