I am attempting to load a font, in slick2d, which (in eclipse) is located at: \"resources\\fonts\\slkscr.ttf\"
with the following code:
private void
Put a leading slash to indicate to search from the root of the class-path, vis.
..getResourceAsStream("/resources/fonts/slkscr.ttf")..
As an aside. That stream closed
message might be telling us that createFont
requires a repositionable InputStream
. Try instead:
getResource("/resources/fonts/slkscr.ttf")
..or..
getResource("/slkscr.ttf")
..depending upon path.