MCPcopy Create free account
hub / github.com/creatale/node-dv / cvInitFont

Function cvInitFont

deps/opencv/modules/core/src/drawing.cpp:2676–2690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2674
2675
2676CV_IMPL void
2677cvInitFont( CvFont *font, int font_face, double hscale, double vscale,
2678 double shear, int thickness, int line_type )
2679{
2680 CV_Assert( font != 0 && hscale > 0 && vscale > 0 && thickness >= 0 );
2681
2682 font->ascii = cv::getFontData(font_face);
2683 font->font_face = font_face;
2684 font->hscale = (float)hscale;
2685 font->vscale = (float)vscale;
2686 font->thickness = thickness;
2687 font->shear = (float)shear;
2688 font->greek = font->cyrillic = 0;
2689 font->line_type = line_type;
2690}
2691
2692CV_IMPL void
2693cvGetTextSize( const char *text, const CvFont *_font, CvSize *_size, int *_base_line )

Callers 1

cvFontFunction · 0.85

Calls 1

getFontDataFunction · 0.85

Tested by

no test coverage detected