Failed to load X11 font with name -*-times-regular-r-*--30-*-*-*

Hi,
I am trying to run a collaborator’s Test script and I am getting this error when I run the script. This worked without errors when we ran the tests in the macOS but we had to transfer this to the ubuntu partition.
I installed the package psychtoolbox-3 from NeuroDebian repository.

Now when I run this the test script, I get the below error :

>>BraviShell
Getting current path...
Cleaning out old PsychToolbox entries...
Adding correct path...
Done!
PTB-INFO: Display ':0' : X-Screen 0 : Assigning primary output as 0 with RandR-CRTC 0 and GPU-CRTC 0.


PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.12 - Build date: Sep 22 2014).
PTB-INFO: Support status on this operating system release: Linux 5.4.0-54-lowlatency Supported.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: Advanced Micro Devices, Inc. [AMD/ATI] - Venus XT [Radeon HD 8870M / R9 M270X/M370X] GPU found. Trying to establish low-level access...
PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Venus XT [Radeon HD 8870M / R9 M270X/M370X] GPU with DCE-6 display engine [6 heads]. Beamposition timestamping enabled.
PTB-INFO: Workaround: Disabled ability to 'clear moglcore', as a workaround for a Mesa OpenGL bug. Sorry for the inconvenience.
PTB-INFO: Fixed point precision integer framebuffer enabled.


PTB-INFO: OpenGL-Renderer is X.Org :: AMD VERDE (DRM 2.50.0, 5.4.0-54-lowlatency, LLVM 10.0.0) :: 4.5 (Compatibility Profile) Mesa 20.0.8
PTB-INFO: VBL startline = 1800 , VBL Endline = 1850
PTB-INFO: Measured monitor refresh interval from beamposition = 16.656876 ms [60.035269 Hz].
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.656833 ms [60.035423 Hz]. (50 valid samples taken, stddev=0.000523 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.669723 ms [59.988998 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Support for fast OffscreenWindows enabled.


WARNING: This session of your experiment was run by you with the setting Screen('Preference', 'SkipSyncTests', 1).
WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing
WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real
WARNING: study, please make sure to set Screen('Preference', 'SkipSyncTests', 0) for maximum accuracy and reliability.


PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.12 - Build date: Sep 22 2014).
PTB-INFO: Support status on this operating system release: Linux 5.4.0-54-lowlatency Supported.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: Advanced Micro Devices, Inc. [AMD/ATI] - Venus XT [Radeon HD 8870M / R9 M270X/M370X] GPU found. Trying to establish low-level access...
PTB-INFO: Connected to Advanced Micro Devices, Inc. [AMD/ATI] Venus XT [Radeon HD 8870M / R9 M270X/M370X] GPU with DCE-6 display engine [6 heads]. Beamposition timestamping enabled.
PTB-INFO: Workaround: Disabled ability to 'clear moglcore', as a workaround for a Mesa OpenGL bug. Sorry for the inconvenience.
PTB-INFO: Fixed point precision integer framebuffer enabled.


PTB-INFO: OpenGL-Renderer is X.Org :: AMD VERDE (DRM 2.50.0, 5.4.0-54-lowlatency, LLVM 10.0.0) :: 4.5 (Compatibility Profile) Mesa 20.0.8
PTB-INFO: VBL startline = 1800 , VBL Endline = 1850
PTB-INFO: Measured monitor refresh interval from beamposition = 16.656837 ms [60.035409 Hz].
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.656866 ms [60.035303 Hz]. (50 valid samples taken, stddev=0.000551 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.669723 ms [59.988998 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
PTB-INFO: Support for fast OffscreenWindows enabled.
Preloading stimuli for 1 tests...

StimGenTime =

    0.0276

PTB-WARNING: DrawText: Failed to load external drawtext plugin [libptbdrawtext_ftgl64.so.1: cannot open shared object file: No such file or directory]. Reverting to standard text renderer.
PTB-WARNING: DrawText: Functionality of Screen('DrawText') and Screen('TextBounds') may be limited and text quality may be impaired.
PTB-WARNING: DrawText: Type 'help DrawTextPlugin' at the command prompt to receive instructions for troubleshooting.

Failed to load X11 font with name Times.

Available X11 fonts are:

-arabic-newspaper-medium-r-normal--32-246-100-100-p-137-iso10646-1
-daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--24-170-100-100-c-240-ksc5601.1987-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0
-jis-fixed-medium-r-normal--16-110-100-100-c-160-jisx0208.1983-0
-jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0
-jis-fixed-medium-r-normal--24-170-100-100-c-240-jisx0208.1983-0
-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
-misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
-misc-fixed-bold-r-normal--13-100-100-100-c-80-iso8859-1
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-1
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-2
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-3
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-4
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-5
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-7
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-8
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-9
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-10
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-11
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-13
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-14
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-15
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso8859-16
-misc-fixed-bold-r-normal--13-120-75-75-c-70-iso10646-1
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-1
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-2
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-3
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-4
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-5
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-7
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-8
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-9
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-10
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-13
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-14
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-15
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso8859-16
-misc-fixed-bold-r-normal--13-120-75-75-c-80-iso10646-1
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-1
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-2
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-3
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-4
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-5
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-7
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-8
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-9
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-10
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-11
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-13
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-14
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-15
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-16
-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso10646-1
-misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-1
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-2
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-3
-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso8859-4
.
.
.
-sun-open look cursor-----12-120-75-75-p-160-sunolcursor-1
-sun-open look glyph-----10-100-75-75-p-101-sunolglyph-1
-sun-open look glyph-----12-120-75-75-p-113-sunolglyph-1
-sun-open look glyph-----14-140-75-75-p-128-sunolglyph-1
-sun-open look glyph-----19-190-75-75-p-154-sunolglyph-1
5x7
5x8
6x9
6x10
6x12
6x13
6x13bold
7x13
7x13bold
7x13euro
7x13eurobold
7x14
7x14bold
8x13
8x13bold
8x16
8x16kana
8x16romankana
9x15
9x15bold
10x20
12x24
12x24kana
12x24romankana
a14
cursor
decw$cursor
decw$session
fixed
hanzigb16fs
hanzigb16st
hanzigb24st
heb6x13
heb8x13
k14
kana14
kanji16
kanji24
micro
nil2
olcursor
olglyph-10
olglyph-12
olglyph-14
olglyph-19
r14
r16
r24
rk14
rk16
rk24
variable
-arabic-newspaper-medium-r-normal--0-0-100-100-p-0-iso10646-1
-daewoo-gothic-medium-r-normal--0-0-100-100-c-0-ksc5601.1987-0
-daewoo-mincho-medium-r-normal--0-0-100-100-c-0-ksc5601.1987-0
-isas-fangsong ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-song ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-jis-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-2
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-3
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-4
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-5
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-7
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-8
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-9
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-10
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-11
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-13
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-14
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-15
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso8859-16
-misc-fixed-bold-r-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-2
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-3
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-4
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-5
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-7
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-8
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-9
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-10
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-13
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-14
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-15
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-16
-misc-fixed-bold-r-normal--0-0-100-100-c-0-iso10646-1
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-2
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-3
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-4
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-5
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-7
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-8
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-9
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-10
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-13
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-14
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-15
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso8859-16
-misc-fixed-bold-r-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-2
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-3
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-4
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-5
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-7
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-9
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-10
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-11
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-13
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-14
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-15
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso8859-16
-misc-fixed-medium-o-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-2
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-3
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-4
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-5
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-7
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-9
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-10
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-13
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-14
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-15
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso8859-16
-misc-fixed-medium-o-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-2
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-3
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-4
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-5
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-7
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-8
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-9
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-10
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-11
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-13
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-14
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-15
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso8859-16
-misc-fixed-medium-r-normal--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0201.1976-0
-misc-fixed-medium-r-normal--0-0-75-75-c-0-jisx0208.1983-0
-misc-fixed-medium-r-normal--0-0-75-75-c-0-koi8-r
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-2
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-3
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-4
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-5
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-7
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-8
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-9
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-10
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-11
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-13
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-14
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-15
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-16
-misc-fixed-medium-r-normal--0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-normal--0-0-100-100-c-0-koi8-r
-misc-fixed-medium-r-normal-ja-0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-normal-ja-0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-normal-ko-0-0-100-100-c-0-iso10646-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-2
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-3
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-4
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-5
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-7
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-8
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-9
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-10
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-11
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-13
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-14
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-15
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-16
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso10646-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-koi8-r
-misc-nil-medium-r-normal--0-0-75-75-c-0-misc-fontspecific
-mutt-clearlyu alternate glyphs-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu arabic extra-medium-r-normal--0-0-100-100-p-0-fontspecific-0
-mutt-clearlyu arabic-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu devanagari-medium-r-normal--0-0-90-90-p-0-fontspecific-0
-mutt-clearlyu devangari extra-medium-r-normal--0-0-100-100-p-0-fontspecific-0
-mutt-clearlyu ligature-medium-r-normal--0-0-100-100-p-0-fontspecific-0
-mutt-clearlyu pua-medium-r-normal--0-0-100-100-p-0-iso10646-1
-mutt-clearlyu-medium-r-normal--0-0-100-100-p-0-iso10646-1
-schumacher-clean-bold-r-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-medium-i-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso646.1991-irv
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-1
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-2
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-3
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-4
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-5
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-7
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-8
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-9
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-10
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-13
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-14
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-15
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso8859-16
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-iso10646-1
-schumacher-clean-medium-r-normal--0-0-75-75-c-0-koi8-r
-sony-fixed-medium-r-normal--0-0-100-100-c-0-iso8859-1
-sony-fixed-medium-r-normal--0-0-100-100-c-0-jisx0201.1976-0
-sun-open look cursor-----0-0-75-75-p-0-sunolcursor-1
-sun-open look glyph-----0-0-75-75-p-0-sunolglyph-1
.
.
.
-bitstream-charter-bold-i-normal--11-80-100-100-p-68-iso8859-1
-bitstream-charter-bold-i-normal--14-100-100-100-p-86-iso8859-1
-bitstream-charter-bold-i-normal--17-120-100-100-p-105-iso8859-1
-bitstream-charter-bold-i-normal--19-140-100-100-p-117-iso8859-1
-bitstream-charter-bold-i-normal--25-180-100-100-p-154-iso8859-1
-bitstream-charter-bold-i-normal--33-240-100-100-p-203-iso8859-1
-bitstream-charter-bold-r-normal--11-80-100-100-p-69-iso8859-1
-bitstream-charter-bold-r-normal--14-100-100-100-p-88-iso8859-1
-bitstream-charter-bold-r-normal--17-120-100-100-p-107-iso8859-1
-bitstream-charter-bold-r-normal--19-140-100-100-p-119-iso8859-1
-bitstream-charter-bold-r-normal--25-180-100-100-p-157-iso8859-1
-bitstream-charter-bold-r-normal--33-240-100-100-p-206-iso8859-1
-bitstream-charter-medium-i-normal--11-80-100-100-p-60-iso8859-1
-bitstream-charter-medium-i-normal--14-100-100-100-p-76-iso8859-1
-bitstream-charter-medium-i-normal--17-120-100-100-p-92-iso8859-1
-bitstream-charter-medium-i-normal--19-140-100-100-p-103-iso8859-1
-bitstream-charter-medium-i-normal--25-180-100-100-p-136-iso8859-1
-bitstream-charter-medium-i-normal--33-240-100-100-p-179-iso8859-1
-bitstream-charter-medium-r-normal--11-80-100-100-p-61-iso8859-1
-bitstream-charter-medium-r-normal--14-100-100-100-p-78-iso8859-1
-bitstream-charter-medium-r-normal--17-120-100-100-p-95-iso8859-1
-bitstream-charter-medium-r-normal--19-140-100-100-p-106-iso8859-1


Failed to load X11 font with name -*-times-regular-r-*--30-*-*-*.
Try a Screen('TextFont') name according to one of the listed available fonts above.

Error in function DrawText: 	Usage error
Couldn't select the requested font with the requested font settings from X11 system!


WARNING: This session of your experiment was run by you with the setting Screen('Preference', 'SkipSyncTests', 1).
WARNING: This means that some internal self-tests and calibrations were skipped. Your stimulus presentation timing
WARNING: may have been wrong. This is fine for development and debugging of your experiment, but for running the real
WARNING: study, please make sure to set Screen('Preference', 'SkipSyncTests', 0) for maximum accuracy and reliability.
Error using Screen
Usage:

[newX,newY]=Screen('DrawText', windowPtr, text [,x] [,y] [,color] [,backgroundColor] [,yPositionIsBaseline] [,swapTextDirection]);

Error in WaitForTrigger (line 43)
    [newX,newY]=Screen('DrawText', w, thisMessage, 10, 10, bgcolor, bgcolor);

Error in BraviShell (line 367)
        triggerTime = WaitForTrigger(windowPtr, triggerKeys, dispMsg, 255, tests{1}.BackColor, 0*shell.TR);

Thank you,
Abhi.

See the error saying drawtextplugin couldn’t be loaded, it gives instructions where to go for help. Try fixing that first.

But importantly, as i already told you,this is an ancient PTB, uograde to the latest version

What @dcnieho says.

It is unclear to me how you managed to install such an ancient year 2014 3.0.12 PTB from NeuroDebian on what seems to be a rather recent Linux distribution? Your previous retracted post also suggested something very weird going on with your installation. NeuroDebian has PTB 3.0.17 at the moment for all recent distributions. That outdated PTB may very well be the reason for the trouble. How exactly did you install it, on what Linux distribution? And which Matlab version?

-mario

Yes. It was the issue with the version of PTB. Got it working now. Thanks.

Hi! I have the same issue with the latest PTB and matlab 2017b. I upgraded Ubuntu from 18.04 to 20-04. I followed all the recommendations but it still cannot find libptbdrawtext_ftgl64.so.1. I also checked the libraries freetype and fontconfig. Everything looks good but I cannot use DrawText. Do you have any idea to solve this?

Here is the output:

PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.18 - Build date: Oct  6 2021).
PTB-INFO: OS support status: Linux 5.4.0-88-lowlatency Supported.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: For information about paid priority support, community membership and commercial services, please type
PTB-INFO: 'PsychPaidSupportAndServices'.

PTB-INFO: Connected to NVidia GK208B [GeForce GT 710] GPU of NV-0e0 family with 4 display heads.


PTB-INFO: OpenGL-Renderer is NVIDIA Corporation :: NVIDIA GeForce GT 710/PCIe/SSE2 :: 4.6.0 NVIDIA 470.74
PTB-INFO: VBL startline = 1080 , VBL Endline = 1124
PTB-INFO: Measured monitor refresh interval from beamposition = 16.665712 ms [60.003438 Hz].
PTB-INFO: Will use beamposition query for accurate Flip time stamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.664677 ms [60.007165 Hz]. (50 valid samples taken, stddev=0.020282 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.666667 ms [60.000000 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.
The refresh interval reported by the operating system is 16.66667 ms.
PTB-WARNING: DrawText: Failed to load external drawtext plugin 'libptbdrawtext_ftgl64.so.1' [libptbdrawtext_ftgl64.so.1: cannot open shared object file: No such file or directory]. Reverting to legacy text renderer.
PTB-WARNING: DrawText: Functionality of Screen('DrawText') and Screen('TextBounds') may be limited and text quality may be impaired.
PTB-WARNING: DrawText: Type 'help DrawTextPlugin' at the command prompt to receive instructions for troubleshooting.

Failed to load X11 font with name Arial.
...
...
...

Failed to load X11 font with name -*-arial-regular-r-*--24-*-*-*.
Try a Screen('TextFont') name according to one of the listed available fonts above.

Error in function DrawText: 	Usage error
Couldn't select the requested font with the requested font settings from X11 system!

You don’t say what you unsuccessfully tried.

Is the file there in the [PsychtoolboxRoot ‘/PsychBasic/PsychPlugins’] folder? If not, maybe retry the download in case something went wrong.

Did you sudo dpkg-reconfigure matlab-support according to our download/update instructions?

It is also possible that PTB 3.0.18 may no longer work correctly wirh R2017b, only the latest R2021b is tested and officially supported anymore. Because due to the continued absolutely disappointing lack of financial support by our users, we can not afford developing and testing on a range of Matlab versions anymore, so it is whatever Mathworks sponsors us, which at this time is R2021b only.

Any further help from myself will require paid priority support: help PsychPaidSupportAndServices. Ofc. if R2017b would be the reason why things stopped working then there ain’t anything we could do and you’d be permanently stuck on the unsupported / end-of-life PTB 3.0.17.

-mario

Thanks Mario! Yes, the file is there. Still, I’ve reinstalled ptb (followed by PsychLinuxConfiguration on matlab) but it didn’t make any difference. I did sudo dpkg-reconfigure matlab-support on terminal. I’ve also checked FreeType and FontConfig libraries to make sure that there was no issue about the libraries during the upgrade. I tried to update them but Ubuntu said everything is fine with them.

I tried to find another solution but it might not exist. So, I’ll update to R2021b and try again.