15.07.2013 Views

luatexref-t.pdf.

luatexref-t.pdf.

luatexref-t.pdf.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The name will normally be a full path name as it is returned by either one of the file discovery callbacks<br />

or the internal version of kpse.find_file().<br />

success<br />

Return false when a fatal error occurred (e. g. when the file cannot be found, after all).<br />

data<br />

The bytes comprising the file.<br />

data_size<br />

The length of the data, in bytes.<br />

Return an empty string and zero if the file was found but there was a reading problem.<br />

The list of functions is as follows:<br />

read_font_file ofm or tfm files<br />

read_vf_file virtual fonts<br />

read_map_file map files<br />

read_enc_file encoding files<br />

read_sfd_file subfont definition files<br />

read_pk_file pk bitmap files<br />

read_data_file embedded files (\<strong>pdf</strong>obj file ...)<br />

read_truetype_file TrueType font files<br />

read_type1_file Type1 font files<br />

read_opentype_file OpenType font files<br />

4.1.3 Data processing callbacks<br />

4.1.3.1 process_input_buffer<br />

This callback allows you to change the contents of the line input buffer just before LuaTEX actually starts<br />

looking at it.<br />

function( buffer)<br />

return adjusted_buffer<br />

end<br />

If you return nil, LuaTEX will pretend like your callback never happened. You can gain a small amount<br />

of processing time from that.<br />

This callback does not replace any internal code.<br />

36<br />

LuaTEX Lua Libraries

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!