Use Windows Font for OpenOffice
At present, although Linux is more efficient and stable than windows, but because Windows is popular and easy to use, we sometimes have to use some resources commonly used in windows, such as fonts, in Linux, this is especially true for new users who have just switched from windows.
When openofficeis used on the linux machine to convert the ".doc file, garbled characters appear in the converted PDF file. It can be correctly executed on a Windows machine, so it is possible that the system did not install the appropriate font.
To use the TrueType font in Ooo, you only need to place the font file/Usr/share/fonts/TrueType/OpenOfficeBut note that users generally do not have the write permission for this directory. If there are too many fonts, it is too troublesome to copy them one by one using a terminal, so I will first copy the fonts to be used from other machines with Windows installed, first create a folder in my home directory, put all the font files in, and then use commands on the terminal
Sudo CP Font/*/usr/share/fonts/TrueType/OpenOffice |
Enter the password. The file name of a font file can be left empty, as long as the file name is not duplicated. The specific font name is embedded in the file and can be correctly displayed in ooo. In addition, the font path of the Windows system is (my system is Windows 7):"C: \ windows \ Fonts"Directory.
Although the problem is solved, if there is more than oneProgramIf this is required, it is not necessary to copy several copies, and the disk space is wasted. It is good to use only one file copy to solve multiple similar applications. The following is my solution:
I tried to create a hidden directory under my main directory.~ /. MyfontUsed to put a font file, and then use
Sudo ln-S ~ /. Myfont/usr/share/fonts/TrueType/OpenOffice |
The link is established, but the OpenOffice directory seems to be quite special. The soft link created in the past cannot be used. No way, you can only try the hard link and remove the-S parameter, note that hard links cannot be created on different drives (my/home is in a separate partition), so first move the folder to the same partition of OpenOffice and then create a hard link:
Sudo mv ~ /. Myfont/usr/share/fonts/TrueType/. myfont Sudo ln-S/usr/.../. myfont/*/usr/.../OpenOffice |
Execution successful. Open OOO and test. Successful!
To avoid losing some files not in the/home directory when you need to redo the system, run the following command:
Sudo mkdir/backups Sudo mV/usr/.../. myfont/backups/myfont |
Two commands. move myfont to the backups directory in the root directory and unhide it. In this way, if you want to process any other files, you can put them in the backups directory, if you want to redo the system at any time, you only need to back up/backups. This is a perfect solution, great!