MCPcopy Create free account
hub / github.com/SFML/SFML / openFromStream

Method openFromStream

src/SFML/Graphics/Font.cpp:222–233  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

220
221////////////////////////////////////////////////////////////
222bool Font::openFromStream(InputStream& stream)
223{
224 // Make sure that the stream's reading position is at the beginning
225 if (!stream.seek(0).has_value())
226 {
227 err() << "Failed to seek font stream" << std::endl;
228 return false;
229 }
230
231 // Open the font, do not save the stream in m_stream, its owned by the caller
232 return openFromStreamImpl(stream, "stream");
233}
234
235
236////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected