Open sl1pkn07 opened 4 years ago
The current NP2 other than Windows does not have a font conversion function. As NP2kai use SDL TTF library, I plan to support it.
I fixed using 'default.ttf' on X11.
Make font files symbol file into ~/.config/xnp2kai/default.ttf I recommend to use 'Takao Gothic'.
sudo apt install 'fonts-takao-*'
ln -s /usr/share/fonts/truetype/takao-gothic/TakaoGothic.ttf ~/.config/xnp2kai/default.ttf
If already exist font.tmp file, delete it.
Regard.
gcc -DHAVE_CONFIG_H -DSYSRESPATH=\""/usr/share/xnp2kai"\" -I. -I./.. -I./../x11 -I./../x11/gtk2 -I./../x11/debug -I./../common -I./../cbus -I./../fdd -I./../generic -I./../io -I./../io/pci -I./../mem -I./../network -I./../sound -I./../sound/fmgen -I./../vram -I./../wab -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libusb-1.0 -DGIT_VERSION=\""5d899ba"\" -DNP2_X11 -DSUPPORT_LARGE_HDD -DSUPPORT_VPCVHD -DSUPPORT_KAI_IMAGES -DHOOK_SYSKEY -DALLOW_MULTIRUN -DSUPPORT_NET -DSUPPORT_LGY98 -DUSE_MAME -DSUPPORT_SOUND_SB16 -DSUPPORT_NVL_IMAGES -DSUPPORT_FMGEN -DSUPPORT_GPIB -DSUPPORT_SMPU98 -DSUPPORT_FAST_MEMORYCHECK -DSUPPORT_ASYNC_CPU -DSUPPORT_STATSAVE -DSUPPORT_NP2_THREAD -DNP2_THREAD_POSIX -DX11_BUILD_ALL -I./../i286c -D_FORTIFY_SOURCE=2 -DNDEBUG -fsigned-char -fno-strict-aliasing -march=native -O2 -pipe -fno-plt -pthread -c -o ./../x11/xnp2kai-drawmng.o `test -f './../x11/drawmng.c' || echo './'`./../x11/drawmng.c
gcc -DHAVE_CONFIG_H -DSYSRESPATH=\""/usr/share/xnp2kai"\" -I. -I./.. -I./../x11 -I./../x11/gtk2 -I./../x11/debug -I./../common -I./../cbus -I./../fdd -I./../generic -I./../io -I./../io/pci -I./../mem -I./../network -I./../sound -I./../sound/fmgen -I./../vram -I./../wab -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/libffi-3.2.1/include -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/libusb-1.0 -DGIT_VERSION=\""5d899ba"\" -DNP2_X11 -DSUPPORT_LARGE_HDD -DSUPPORT_VPCVHD -DSUPPORT_KAI_IMAGES -DHOOK_SYSKEY -DALLOW_MULTIRUN -DSUPPORT_NET -DSUPPORT_LGY98 -DUSE_MAME -DSUPPORT_SOUND_SB16 -DSUPPORT_NVL_IMAGES -DSUPPORT_FMGEN -DSUPPORT_GPIB -DSUPPORT_SMPU98 -DSUPPORT_FAST_MEMORYCHECK -DSUPPORT_ASYNC_CPU -DSUPPORT_STATSAVE -DSUPPORT_NP2_THREAD -DNP2_THREAD_POSIX -DX11_BUILD_ALL -I./../i286c -D_FORTIFY_SOURCE=2 -DNDEBUG -fsigned-char -fno-strict-aliasing -march=native -O2 -pipe -fno-plt -pthread -c -o ./../x11/xnp2kai-fontmng.o `test -f './../x11/fontmng.c' || echo './'`./../x11/fontmng.c
./../x11/fontmng.c:9:10: fatal error: ank12.res: No such file or directory
9 | #include "ank12.res"
| ^~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:12368: ../x11/xnp2kai-fontmng.o] Error 1
Oh, sorry. I forgot it. I added it.
ok, seems fixed.
as note, seems the font rendering looks better with MsGothic than TakaoGothic
MsGothic
TakaoGothic
if no use default.ttf, the autogenerate fonts looks like
Greetings
when run xnp21kai in clean environment, the font rendering is broken
the file generated:
font.tmp.zip
if put in the
/home/$USER/.config/xnp21kai
folder the font from anex86 emulator (save as font.bmp), the rendering is correctArchlinux KDE plasma 5 japanese fonts from windows 10 installation
greetings