Skip to content
ExamplesOpen editor ↗

LEFOKO

→ WORD

A value that breaks lines only between words.

LEFOKO

You hand it to kgaoloMokwalo. It is the default: text breaks at spaces only, and every word stays whole.

If one word is longer than the box — a long name, or a URL — it runs outside the box and may run off the canvas. When that happens, TLHAKA is what stops it.

lefoko is the Setswana for “word”, and it is heavily written; its plural is mafoko. Bopa already uses it in its own pages.

Words kept whole
tiro setaLoeto() {
  thalaKanefase(400, 220);
  bokamorago(242);
  bogoloJwaMokwalo(19);
  sebakaSaMela(26);
  kgaoloMokwalo(LEFOKO);

  tlogelaGoTlatsa();
  mothaloMmala(205, 210, 218);
  thalaKhutlonne(40, 40, 200, 150);

  tlogelaMothalo();
  tlatsaMmala(40, 50, 70);
  thalaMokwalo('Mmangwana o tshwara thipa ka fa bogaleng', 48, 66, 184);

  tlhalosa('Seane se se kwadilweng mo lebokosong, mme lefoko lengwe le lengwe le felletse mo moleng wa lone.');
}

kgaoloMokwalo, TLHAKA, thalaMokwalo