Skip to content

xlib:text-extents emits error when unable to translate unicode character. #182

Description

@fourier
(defparameter *myfont* (xlib:open-font *display* "terminus-bold-16"))
(xlib:text-extents *myfont* "привет")
; Debugger entered on #<TYPE-ERROR expected-type: BASE-CHAR datum: #\CYRILLIC_SMALL_LETTER_PE>

Seems error in translate-default:

(let ((wbuf (xlib::display-tbuf16 *display*)))
           (xlib::translate-default "привет" 0 3 *myfont* wbuf 0)
           wbuf)
; Debugger entered on #<TYPE-ERROR expected-type: BASE-CHAR datum: #\CYRILLIC_SMALL_LETTER_PE>

or futher down in char->card8:

(xlib:char->card8 (char "привет" 0))
; Debugger entered on #<TYPE-ERROR expected-type: BASE-CHAR datum: #\CYRILLIC_SMALL_LETTER_PE>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions