Font dependency specification

28 views
Skip to first unread message

marta zhango

unread,
Jan 1, 2026, 6:20:58 PM (9 days ago) Jan 1
to tlaplus
I want to describe that font attributes are dependent upon three things -
 fontset, faces, and overlays.  How can I write this in TLA?

Perhaps like this

FontAttris(point) \def
\E face \in ActiveFaces(point),
\E overlay \in OverlaysAt(point),
\E charset \in Fontset(point)
or

FontFaceAttributes(font-at(point)) = faces(pt) ^ Overlays(pt) ^ Fontset(pt) 

or 

 □ (FontAttrs(pt) ∈ Faces(pt) × Overlays(pt) × Fontset(pt))

How can I approach this?


Stephan Merz

unread,
Jan 3, 2026, 3:58:31 AM (8 days ago) Jan 3
to tla...@googlegroups.com
How about using a record for representing a font attribute, with the set of all such records defined as:

FontAttribute == [fontset : FontSet, face : Face, overlay : Overlay]

for suitable constants FontSet, Face, and Overlay.

It looks like the possible attributes at a specific "point" are restricted further, these could then be specified along the lines of

FontAttributes(pt) == [fontset : FontSetsAt(pt), face : FacesAt(pt), overlay : OverlaysAt(pt)]

Stephan

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/tlaplus/6d4db21c-e84a-4e58-a434-38d2a41a6c72n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages