var searchIndex = {}; searchIndex["bdf"] = {"doc":"BDF font handler.","items":[[3,"Glyph","bdf","A font glyph.",null,null],[3,"BoundingBox","","The bounds of a glyph.",null,null],[12,"width","","",0,null],[12,"height","","",0,null],[12,"x","","",0,null],[12,"y","","",0,null],[3,"Bitmap","","The bitmap of a glyph.",null,null],[3,"Font","","A BDF font.",null,null],[3,"Reader","","The font reader.",null,null],[3,"Writer","","The font writer.",null,null],[4,"Property","","A `Font` property.",null,null],[13,"String","","",1,null],[13,"Integer","","",1,null],[4,"Direction","","The direction of the glyph.",null,null],[13,"Default","","Default direction, typically lef-to-right.",2,null],[13,"Alternate","","Alternate direction, typically right-to-left.",2,null],[13,"Both","","Both directions.",2,null],[4,"Entry","","The possible entries in BDF.",null,null],[13,"StartFont","","`STARTFONT` marks the beginning of the font declaration and contains\nthe BDF version.",3,null],[13,"Comment","","`COMMENT` contains the comment body.",3,null],[13,"ContentVersion","","`CONTENTVERSION` contains the font version.",3,null],[13,"Font","","`FONT` contains the font name.",3,null],[13,"Size","","`SIZE` contains the pt size, X-axis DPI and Y-axis DPI.",3,null],[13,"Chars","","`CHARS` contains the number of characters stored.",3,null],[13,"FontBoundingBox","","`FONTBOUNDINGBOX` contains the default bounding box.",3,null],[13,"EndFont","","`ENDFONT` marks the end of the font declaration.",3,null],[13,"StartProperties","","`STARTPROPERTIES` marks the beginning of the property declarations and\ncontains the number of properties.",3,null],[13,"Property","","Contains the name and value of a property.",3,null],[13,"EndProperties","","`ENDPROPERTIES` marks the end of the property declarations.",3,null],[13,"StartChar","","`STARTCHAR` marks the beginning of the character declaration and contains\nthe name of the character.",3,null],[13,"Encoding","","`ENCODING` contains the codepoint for the glyph.",3,null],[13,"Direction","","`METRICSSET` contains the direction for the glyph.",3,null],[13,"ScalableWidth","","`SWIDTH` contains the scalable width (x, y) of the glyph.",3,null],[13,"DeviceWidth","","`DWIDTH` contains the device width (x, y) of the glyph.",3,null],[13,"AlternateScalableWidth","","`SWIDTH1` contains the alternate scalable width (x, y) of the glyph.",3,null],[13,"AlternateDeviceWidth","","`DWIDTH1` contains the alternate device width (x, y) of the glyph.",3,null],[13,"Vector","","`VVECTOR` contains the vector offset for the glyph.",3,null],[13,"BoundingBox","","`BBX` contains the bounds for the glyph.",3,null],[13,"Bitmap","","`BITMAP` contains the bits of the glyph.",3,null],[13,"EndChar","","`ENDCHAR` marks the end of the character declaration.",3,null],[13,"Unknown","","Contains the unknown id.",3,null],[4,"Error","","Errors for `Reader` and `Writer`.",null,null],[13,"IO","","A downstream IO error.",4,null],[13,"Parse","","A downstream parsing error.",4,null],[13,"MissingVersion","","`STARTFONT` is missing the format version.",4,null],[13,"MissingBoundingBox","","There was no bounding box for a character.",4,null],[13,"MissingValue","","An entry is missing a value.",4,null],[13,"InvalidCodepoint","","An unknown error.",4,null],[13,"End","","Eof has been reached.",4,null],[13,"MalformedFont","","The font declaration is malformed.",4,null],[13,"MalformedProperties","","The property declarations are malformed.",4,null],[13,"MalformedChar","","The character declaration is malformed.",4,null],[5,"open","","Open a BDF file and read it into a `Font`.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"read","","Read a BDF stream into a `Font`.",null,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[5,"save","","Save the font into a BDF file.",null,{"inputs":[{"name":"t"},{"name":"font"}],"output":{"name":"result"}}],[5,"write","","Write the font to the writer.",null,{"inputs":[{"name":"t"},{"name":"font"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"parse","","Parse a property string.",1,{"inputs":[{"name":"str"}],"output":{"name":"property"}}],[11,"fmt","","",5,null],[11,"default","","",5,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a new glyph with the given name and codepoint.",5,{"inputs":[{"name":"t"},{"name":"char"}],"output":{"name":"self"}}],[11,"validate","","Validates the definition.",5,null],[11,"name","","Gets the name.",5,null],[11,"set_name","","Sets the name.",5,null],[11,"codepoint","","Gets the codepoint.",5,null],[11,"set_codepoint","","Sets the codepoint.",5,null],[11,"direction","","Gets the direction.",5,null],[11,"set_direction","","Sets the direction.",5,null],[11,"scalable_width","","Gets the scalable width.",5,null],[11,"set_scalable_width","","Sets the scalable width.",5,null],[11,"device_width","","Gets the device width.",5,null],[11,"set_device_width","","Sets the device width.",5,null],[11,"alternate_scalable_width","","Gets the alternate scalable width.",5,null],[11,"set_alternate_scalable_width","","Sets the alternate scalable width.",5,null],[11,"alternate_device_width","","Gets the alternate device width.",5,null],[11,"set_alternate_device_width","","Sets the alternate device width.",5,null],[11,"vector","","Gets the offset vector.",5,null],[11,"set_vector","","Sets the offset vector.",5,null],[11,"bounds","","Gets the bounds.",5,null],[11,"set_bounds","","Sets the bounds.",5,null],[11,"map","","Gets the bitmap.",5,null],[11,"set_map","","Sets the bitmap.",5,null],[11,"pixels","","Create an iterator over the pixels which will yield `((x, y), value)`.",5,null],[11,"deref","","",5,null],[11,"deref_mut","","",5,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"default","","",0,{"inputs":[],"output":{"name":"self"}}],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"default","","",2,{"inputs":[],"output":{"name":"self"}}],[11,"fmt","","",6,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"default","","",6,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Creates a bitmap of the given size.",6,{"inputs":[{"name":"u32"},{"name":"u32"}],"output":{"name":"self"}}],[11,"width","","Gets the width.",6,null],[11,"height","","Gets the height.",6,null],[11,"get","","Gets a bit from the map.",6,null],[11,"set","","Sets a bit of the map.",6,null],[11,"deref","","",6,null],[11,"deref_mut","","",6,null],[11,"fmt","","",7,null],[11,"default","","",7,{"inputs":[],"output":{"name":"self"}}],[11,"new","","Create a new font with the given name and content-version.",7,{"inputs":[{"name":"t"},{"name":"option"}],"output":{"name":"self"}}],[11,"validate","","Validates the definition.",7,null],[11,"format","","Gets BDF format version.",7,null],[11,"set_format","","Sets the BDF format version.",7,null],[11,"name","","Gets the name.",7,null],[11,"set_name","","Sets the name.",7,null],[11,"version","","Gets the content-version.",7,null],[11,"set_version","","Sets the content-version.",7,null],[11,"size","","Gets the size.",7,null],[11,"set_size","","Sets the size.",7,null],[11,"bounds","","Gets the default bounding box.",7,null],[11,"set_bounds","","Sets the default bounding box.",7,null],[11,"direction","","Gets the default direction.",7,null],[11,"set_direction","","Sets the default direction.",7,null],[11,"scalable_width","","Gets the default scalable width.",7,null],[11,"set_scalable_width","","Sets the default scalable width.",7,null],[11,"device_width","","Gets the default device width.",7,null],[11,"set_device_width","","Sets the default device width.",7,null],[11,"alternate_scalable_width","","Gets the default alternate scalable width.",7,null],[11,"set_alternate_scalable_width","","Sets the default alternate scalable width.",7,null],[11,"alternate_device_width","","Gets the default alternate device width.",7,null],[11,"set_alternate_device_width","","Sets the default alternate device width.",7,null],[11,"vector","","Gets the default offset vector.",7,null],[11,"set_vector","","Sets the default offset vector.",7,null],[11,"properties","","Gets the properties.",7,null],[11,"properties_mut","","Gets a mutable reference to the properties.",7,null],[11,"glyphs","","Gets the glyphs.",7,null],[11,"glyphs_mut","","Gets a mutable reference to the glyphs.",7,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",4,null],[11,"from","","",4,{"inputs":[{"name":"error"}],"output":{"name":"self"}}],[11,"from","","",4,{"inputs":[{"name":"parseinterror"}],"output":{"name":"self"}}],[11,"fmt","","",4,null],[11,"description","","",4,null],[11,"from","","",8,{"inputs":[{"name":"t"}],"output":{"name":"reader"}}],[11,"entry","","Get the next entry.",8,null],[11,"next","","",8,null],[11,"from","","",9,{"inputs":[{"name":"t"}],"output":{"name":"writer"}}],[11,"entry","","Write an entry.",9,null]],"paths":[[3,"BoundingBox"],[4,"Property"],[4,"Direction"],[4,"Entry"],[4,"Error"],[3,"Glyph"],[3,"Bitmap"],[3,"Font"],[3,"Reader"],[3,"Writer"]]}; initSearch(searchIndex);