var searchIndex = {}; searchIndex["gfx_text"] = {"doc":"A library for drawing text for gfx-rs graphics API.\nUses freetype-rs underneath to former the font bitmap texture and collect\ninformation about face glyphs.","items":[[3,"Renderer","gfx_text","Text renderer.",null,null],[3,"RendererBuilder","","Text renderer builder. Allows to set rendering options using builder\npattern.",null,null],[4,"FontError","","Represents possible errors which may occur during the font loading.",null,null],[13,"NoFont","","No font was specified",0,null],[13,"EmptyFont","","Character set is empty",0,null],[13,"FreetypeError","","FreeType library error",0,null],[4,"Error","","General error type returned by the library. Wraps all other errors.",null,null],[13,"FontError","","Font loading error",1,null],[13,"PipelineError","","Pipeline creation/update error",1,null],[13,"CombinedError","","An error occuring during creation of texture or resource view",1,null],[13,"UpdateError","","An error occuring in buffer/texture updates",1,null],[4,"HorizontalAnchor","","An anchor aligns text horizontally to its given x position.",null,null],[13,"Left","","Anchor the left edge of the text",2,null],[13,"Center","","Anchor the horizontal mid-point of the text",2,null],[13,"Right","","Anchor the right edge of the text",2,null],[4,"VerticalAnchor","","An anchor aligns text vertically to its given y position.",null,null],[13,"Top","","Anchor the top edge of the text",3,null],[13,"Center","","Anchor the vertical mid-point of the text",3,null],[13,"Bottom","","Anchor the bottom edge of the text",3,null],[5,"new","","Create a new text renderer builder. Alias for `RendererBuilder::new`.",null,{"inputs":[{"name":"f"}],"output":{"name":"rendererbuilder"}}],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"freetypeerror"}],"output":{"name":"fonterror"}}],[11,"fmt","","",1,null],[11,"eq","","",2,null],[11,"eq","","",3,null],[11,"from","","",1,{"inputs":[{"name":"fonterror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"pipelinestateerror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"combinederror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"updateerror"}],"output":{"name":"error"}}],[11,"new","","Create a new text renderer builder.",4,{"inputs":[{"name":"f"}],"output":{"name":"self"}}],[11,"with_size","","Specify custom size.",4,null],[11,"with_font","","Specify custom font by path.",4,null],[11,"with_font_data","","Pass raw font data.",4,null],[11,"with_outline","","Specify outline width and color.\n**Not implemented yet.**",4,null],[11,"with_buffer_size","","Specify custom initial buffer size.",4,null],[11,"with_chars","","Make available only provided characters in font texture instead of\nloading all existing from the font face.",4,null],[11,"build","","Build a new text renderer instance using current settings.",4,null],[11,"unwrap","","Just an alias for `builder.build().unwrap()`.",4,null],[11,"add","","Add some text to the current draw scene relative to the top left corner\nof the screen using pixel coordinates.",5,null],[11,"add_anchored","","Add text to the draw scene by anchoring an edge or mid-point to a\nposition defined in screen pixel coordinates.",5,null],[11,"add_at","","Add some text to the draw scene using absolute world coordinates.",5,null],[11,"draw","","Draw the current scene and clear state.",5,null],[11,"draw_at","","Draw using provided projection matrix.",5,null],[11,"measure","","Get the bounding box size of a string as rendered by this font.",5,null]],"paths":[[4,"FontError"],[4,"Error"],[4,"HorizontalAnchor"],[4,"VerticalAnchor"],[3,"RendererBuilder"],[3,"Renderer"]]}; initSearch(searchIndex);