| Did you know ... | Search Documentation: |
| Get methods |
<-points,
or font<-height
when font<-points
is @default.<-ascent.x.size(width('x'), <-height) — convenient when laying
out by cell size."x").
Counts ink extents, so a glyph with a wide left side-bearing
contributes its visual width. font<-advance
reports the cursor movement instead (the sum of glyph advances), which
is what layout code usually wants.
<-advance ->clip<-width
to position the next glyph after a string.<-points
multiplied by the argument:
?- get(font(sans, roman, 10), rescale, 1.3, F). F = @sans_roman_13.
i
and w.? or a tofu box).tuple(Lo, Hi). With family = @on (default) the
range includes characters covered by Pango's family fallbacks; with
family = @off only the chosen face is considered.|name -> {description,family,style,weight,size}<-family
slot, because font<-family
is first mapped through @font_families and the result is
then passed to Pango's own font matcher. The reported size is scaled by font.scale.|int] -> font->initialise;
used by the type-checker to deduplicate constructions.
@<family>_<style>_<points>
(kept for compatibility with code that wrote fonts out by reference);
Anything not matched here fails; callers that want to build fonts
from family/style/points/weight should construct the
font(...) term explicitly.