Managing custom fonts in the LSR directory
LSR Designer allows users to apply custom fonts aside from the default font (Arial) in the system.
If you used a custom font (*.ttf) in your template, you must add the font in the defined LSR font directory. This ensures that the custom template maintains your desired formatting after saving the template file in the LSF server. Otherwise, the report uses the system default font in the absence of custom font in the LSR directory.
-
Copy the font from Windows system folder.
Example C:\Windows\Font\Serifa.tff
-
Add the font in the LSR font directory.
\<Product Line>\lsr\templates\default\fonts
For UNIX/AIX: Set the folder permission to 777.
-
To define other location where fonts can be installed, set the path in fontsConfig.xml.
- Navigate to %LAWDIR%<Product Line>lsrtemplatesdefaultfontsfontsConfig.xml
-
Using text editor, add the path tag or edit the existing path.
Example:
For Windows
<?xml version="1.0" encoding="UTF-8"?>
<font>
<path path="D:\lsfprod3\law\apps901\lsr\templates\default\fonts"/>
<path path="C:\Windows\Fonts"/>
<path path="D:\Fonts"/>
</font-paths>
</font>
For UNIX/AIX
<?xml version="1.0" encoding="UTF-8"?>
<font>
<font-paths>
<path path="/fs1/LSF10/fonts"/>
</font-paths>
</font>
-
To define other default font for LSR , edit fontsConfig.xml and set the font name.
Note: LSR uses Arial as default reference font if it exists in the path. If Arial is missing, LSR will use the other default reference font.
Example
<?xml version="1.0" encoding="UTF-8"?>
<font>
<font-paths>
<path path="D:\lsfprod3\law\apps901\lsr\templates\default\fonts" />
<path path="C:\Windows\Fonts" />
</font-paths>
</font>
Note: If the font is not available in the defined path, a message notifies the user that the LSR report generation cannot proceed. Make sure that the font used on the template is available on the server.