అక్షరరూపం

ఎంచుకున్న వచనానికి అక్షరరూప కుటుంబాన్ని వర్తింపజేయండి. పరిధి ఎంచుకుని ఉంటే ఆ పరిధి మాత్రమే మారుతుంది; కర్సర్ మాత్రమే ఉంటే ప్రస్తుత పేరా వచనానికి వర్తిస్తుంది. నిజమైన ఫాంట్ ఫైళ్లు, font-family విలువలను సేవ CSS నిర్ణయిస్తుంది.

డిఫాల్ట్ కుటుంబాలు sans, serif, mono, cursive. తెలుగు లేదా ఇతర బహుభాషా కంటెంట్ ఉన్న సేవల్లో, ప్రతి కుటుంబం ఏ ఫాంట్‌లను వాడాలో స్పష్టంగా నిర్ణయించడం మంచిది.

వింగ్స్
ప్రాథమిక అక్షరరూపంఆఫ్‌సెట్
HTMLఎడిటర్ లోడ్ అవుతోంది…
JSONnabi-treeఎడిటర్ లోడ్ అవుతోంది…
ఇన్‌స్టాల్
npm install nabi-note
కోడ్
import {
  createNabiWith, mountSurface, mountToolbar, mountContextToolbar,
  mountHints, watchSettle, typefaceWing, fontSizeWing, dropCapWing,
  mountViewTools,
} from 'nabi-note'

const selected = [
  typefaceWing,
  fontSizeWing,
  dropCapWing,
]
const { nabi, registry } = createNabiWith(selected)

const root = document.querySelector('.nabi')!
const content = document.querySelector('.nabi-content')!

// The locale also sets the direction — Arabic and Urdu run right to left
mountSurface({ nabi, registry, root: content, locale: 'te' })

const settle = watchSettle(document, { surface: content })
const shared = { nabi, registry, surface: content, settle, locale: 'te' }
const toolbar = mountToolbar({ ...shared, root: document.querySelector('#toolbar')! })
const context = mountContextToolbar({ ...shared, root: document.querySelector('#context')! })
mountHints({ toolbar, context, root, surface: content })
// The preview and fullscreen buttons — they stand their own box at the end of the row
mountViewTools({ ...shared, root, container: document.querySelector('#toolbar')! })

// on every change — hook up your own code here
// nabi.onChange(() => user_callback(nabi.getHtml()))
ts
const selected = wings().use('tf', {
  values: ['sans', 'serif', 'mono'],
}).build()

valuesను వదిలేస్తే అన్ని డిఫాల్ట్ కుటుంబాలు వాడతారు. పత్రాల్లో valuesలో ఉన్న విలువలకే అనుమతి ఉంటుంది.

CSS శైలులు

పత్రం కుటుంబ పేరునే నిల్వ చేస్తుంది; CSS ఫాంట్ ఫైళ్లను ఎంచుతుంది. ఎడిటర్, ప్రచురిత వీక్షణ రెండింటికీ ఒకే కంటైనర్‌లో వేరియబుల్స్ మార్చండి.

css
.nabi-content {
  --nabi-font-serif: "Noto Serif", "Noto Serif KR", serif;
  --nabi-font-mono: "JetBrains Mono", monospace;
}

వెబ్ ఫాంట్‌లు వాడితే ముందు వాటి ఫైళ్లను లోడ్ చేయండి. cursiveకు అనేక భాషల్లో సరైన మద్దతు ఉండదు; కాబట్టి మీ సేవ వాడే నిజమైన ఫాంట్‌ను ఎంచుకున్న తర్వాతే ఇవ్వడం మంచిది.