UNPKG

neft

Version:

Universal Platform

113 lines (47 loc) 3.72 kB
# Font > **API Reference** ▸ [Renderer](/api/renderer.md) ▸ [Text](/api/renderer-text.md) ▸ **Font** <!-- toc --> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee) * * * ### `Font.family` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>String</i></dd><dt>Default</dt><dd><code>&#39;sans-serif&#39;</code></dd></dl> * * * ### `Font.onFamilyChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>String</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#signal-fontonfamilychangestring-oldvalue) * * * ### `Font.pixelSize` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>Float</i></dd><dt>Default</dt><dd><code>14</code></dd></dl> * * * ### `Font.onPixelSizeChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>String</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#signal-fontonpixelsizechangestring-oldvalue) * * * ### `Font.weight` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>Float</i></dd><dt>Default</dt><dd><code>0.4</code></dd></dl> In range from 0 to 1. * * * ### `Font.onWeightChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>Float</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#signal-fontonweightchangefloat-oldvalue) * * * ### `Font.wordSpacing` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>Float</i></dd><dt>Default</dt><dd><code>0</code></dd><dt>Not Implemented</dt></dl> * * * ### `Font.onWordSpacingChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>Float</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd><dt>Not Implemented</dt></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#hidden-signal-fontonwordspacingchangefloat-oldvalue) * * * ### `Font.letterSpacing` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>Float</i></dd><dt>Default</dt><dd><code>0</code></dd><dt>Not Implemented</dt></dl> * * * ### `Font.onLetterSpacingChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>Float</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd><dt>Not Implemented</dt></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#hidden-signal-fontonletterspacingchangefloat-oldvalue) * * * ### `Font.italic` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Type</dt><dd><i>Boolean</i></dd><dt>Default</dt><dd><code>false</code></dd></dl> * * * ### `Font.onItalicChange()` <dl><dt>Static property of</dt><dd><i>Font</i></dd><dt>Parameters</dt><dd><ul><li>oldValue — <i>Boolean</i></li></ul></dd><dt>Type</dt><dd><i>Signal</i></dd></dl> > [`Source`](https://github.com/Neft-io/neft/blob/f9c128ccb37aa79380c961e878cd76ec9e79c99e/src/renderer/types/basics/text/font.litcoffee#signal-fontonitalicchangeboolean-oldvalue)