Function: org--string-width-1
org--string-width-1 is a byte-compiled function defined in
org-macs.el.
Signature
(org--string-width-1 STRING)
Documentation
Return width of STRING when displayed in the current buffer.
Unlike string-width, this function takes into consideration
invisible and display text properties. It supports the
latter in a limited way, mostly for combinations used in Org.
Results may be off sometimes if it cannot handle a given
display value.
Source Code
;; Defined in ~/.emacs.d/elpa/org-9.8.2/org-macs.el
(defun org--string-width-1 (string)
"Return width of STRING when displayed in the current buffer.
Unlike `string-width', this function takes into consideration
`invisible' and `display' text properties. It supports the
latter in a limited way, mostly for combinations used in Org.
Results may be off sometimes if it cannot handle a given
`display' value."
(org--string-from-props string 'display 0 (length string)))