Interface TeXResourceProvider

All Known Implementing Classes:
JlatexmathResources, JlatexmathResourcesJs, TeXClassLoaderResources

public interface TeXResourceProvider
Supplies the resources of the library (the XML files of the font metrics, the symbols and the macros, and the glyph outlines) when there is no class loader to find them, for instance in a native executable. Install it with TeXResources.setProvider(TeXResourceProvider).
  • Method Summary

    Modifier and Type
    Method
    Description
    open(String name)
     
  • Method Details

    • open

      InputStream open(String name) throws IOException
      Parameters:
      name - the resource name, without leading slash, for instance org/scilab/forge/jlatexmath/fonts/base/jlm_cmr10.xml
      Returns:
      the content, or null if the resource is unknown
      Throws:
      IOException - on error