Fonts not rendered correctly
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Two weeks ago, Matlab threw me a low-level graphics error. Ever since restarting it, Matlab does not render fonts as it should inside the editor. Everything is readable, but it looks off (everything looks too thin) as you can see in the image below (which is supposed to be Bitstream Vera Sans Monspaced font). All available fonts have this weird thinnish appearance in the editor.
Besides this, I had a whole load of problems, including errors like
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x254b441c, isOwner false, <26b4eee8, 71f1a077>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
on startup, and low-level graphics errors whenever I try to plot anything.
Opengl info now yields the following output:
>> opengl info
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
Version: ''
Vendor: ''
Renderer: 'None'
RendererDriverVersion: ''
RendererDriverReleaseDate: ''
MaxTextureSize: 0
Visual: ''
Software: 1
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {}
MaxFrameBufferSize: 0
I managed to fix the errors above by strating Matlab with the following command:
Exec=env MESA_LOADER_DRIVER_OVERRIDE=i965 matlab -desktop
However, the editor still looks the same. How can I get the fonts to render as they should?
I am running matlab R2018a on a linux machine with integrated Intel graphics.
3 comentarios
Chunru
el 6 de Ag. de 2021
I remember in some very earlier version of matlab, java installation could cause the problem. But I am not sure. Just take this as a guess.
Respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!