| 2674 | |
| 2675 | |
| 2676 | CV_IMPL void |
| 2677 | cvInitFont( 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 | |
| 2692 | CV_IMPL void |
| 2693 | cvGetTextSize( const char *text, const CvFont *_font, CvSize *_size, int *_base_line ) |