/haiku-fatelf/src/libs/pdflib/libs/pdcore/ |
H A D | pc_font.c | 15 * Basic font functions 23 pdc_init_font_struct(pdc_core *pdc, pdc_font *font) argument 26 * Fill in some reasonable default values in global font info in 32 memset(font, 0, sizeof(pdc_font)); 34 font->verbose = pdc_true; 35 font->verbose_open = pdc_true; 36 font->obj_id = PDC_BAD_ID; 37 font->type = pdc_Type1; 38 font->style = pdc_Normal; 39 font 64 pdc_cleanup_font_struct(pdc_core *pdc, pdc_font *font) argument [all...] |
H A D | pc_corefont.c | 15 * PDFlib in-core font and basic font metric functions 22 /* PDF basic font names */ 141 * Fill up core metric struct from font struct 144 pdc_fill_core_metric(pdc_core *pdc, pdc_font *font, pdc_core_metric *metric) argument 149 metric->name = pdc_strdup(pdc, font->name); 150 metric->flags = font->flags; 151 metric->type = font->type; 152 metric->charcoll = font->charcoll; 153 metric->italicAngle = font 184 pdc_fill_font_metric(pdc_core *pdc, pdc_font *font, const pdc_core_metric *metric) argument [all...] |
/haiku-fatelf/src/tests/kits/interface/bprintjob/ |
H A D | PrintTestView.cpp | 11 BFont font(be_bold_font); 12 font.SetSize(Bounds().Height()/10); 13 font.SetShear(Bounds().Height()/10); 14 font.SetRotation(Bounds().Width()/10); 15 SetFont(&font, B_FONT_ALL);
|
/haiku-fatelf/src/add-ons/translators/hpgs/lib/ |
H A D | hpgsfont.c | 30 * The implementation of the public API for ttf font handling. * 127 if (font_directory[i].font) 128 hpgs_destroy_font(font_directory[i].font); 156 font_directory[font_directory_sz].font = 0; 331 static unsigned cmap_find_unicode(const hpgs_font *font, int unicode) argument 334 size_t i1 = font->cmap_data.ranges_sz; 343 if (font->cmap_data.ranges[i].endCode < unicode) 350 if (i0 >= font->cmap_data.ranges_sz || unicode < font->cmap_data.ranges[i0].startCode) 353 const hpgs_font_cmap_code_range *range = &font 455 seek_font_table(hpgs_font *font, int table) argument 462 seek_font_table_off(hpgs_font *font, int table, size_t off) argument 739 read_head_table(hpgs_font *font) argument 766 read_hhea_table(hpgs_font *font) argument 791 read_maxp_table(hpgs_font *font) argument 814 read_hmtx_table(hpgs_font *font) argument 846 read_loca_table(hpgs_font *font) argument 895 read_kern_table(hpgs_font *font) argument 972 read_cmap_table(hpgs_font *font) argument 1054 read_post_table(hpgs_font *font) argument 1147 load_glyph_gid(hpgs_font *font, hpgs_font_glyph_data *glyph_data, uint16_t gid) argument 1433 find_glyph_gid(hpgs_font *font, unsigned gid) argument 1507 find_kern_value(hpgs_font *font, uint16_t gid, uint16_t gid_n) argument 1713 hpgs_destroy_font(hpgs_font *font) argument 1745 hpgs_font_get_ascent(hpgs_font *font) argument 1753 hpgs_font_get_descent(hpgs_font *font) argument 1761 hpgs_font_get_line_gap(hpgs_font *font) argument 1770 hpgs_font_get_cap_height(hpgs_font *font) argument 1787 hpgs_font_get_glyph_count(hpgs_font *font) argument 1796 hpgs_font_get_glyph_id(hpgs_font *font, int uc) argument 1813 hpgs_font_get_glyph_name(hpgs_font *font, unsigned gid) argument 1828 hpgs_font_get_glyph_bbox(hpgs_font *font, hpgs_bbox *bb, unsigned gid) argument 1851 hpgs_font_get_glyph_metrics(hpgs_font *font, hpgs_point *m, unsigned gid) argument 1872 hpgs_font_get_kern_metrics(hpgs_font *font, hpgs_point *m, unsigned gid_l, unsigned gid_r) argument 1890 hpgs_font_get_utf8_metrics(hpgs_font *font, hpgs_point *m, const char *str, int strlen) argument 1942 decompose_glyph_internal(hpgs_font *font, void *ctxt, hpgs_moveto_func_t moveto_func, hpgs_lineto_func_t lineto_func, hpgs_curveto_func_t curveto_func, const hpgs_matrix *m, unsigned gid) argument 2095 hpgs_font_decompose_glyph(hpgs_font *font, void *ctxt, hpgs_moveto_func_t moveto_func, hpgs_lineto_func_t lineto_func, hpgs_curveto_func_t curveto_func, const hpgs_matrix *m, unsigned gid) argument 2116 hpgs_font_draw_glyph(hpgs_font *font, hpgs_device *device, const hpgs_matrix *m, unsigned gid) argument 2139 hpgs_font_decompose_utf8(hpgs_font *font, void *ctxt, hpgs_moveto_func_t moveto_func, hpgs_lineto_func_t lineto_func, hpgs_curveto_func_t curveto_func, hpgs_fill_func_t fill_func, const hpgs_matrix *m, const char *str, int strlen) argument 2195 hpgs_font_draw_utf8(hpgs_font *font, hpgs_device *device, const hpgs_matrix *m, const char *str, int strlen) argument [all...] |
/haiku-fatelf/src/tests/kits/interface/bfont/ |
H A D | DumpFontList.cpp | 35 BFont font; local 36 font.SetFamilyAndStyle(family, style); 37 printf("\t\tcode: 0x%08lx\n", font.FamilyAndStyle()); 38 printf("\t\tsize: %f\n", font.Size()); 39 printf("\t\tshear: %f\n", font.Shear()); 40 printf("\t\trotation: %f\n", font.Rotation()); 41 printf("\t\tspacing: %u\n", font.Spacing()); 42 printf("\t\tencoding: %u\n", font.Encoding()); 44 uint16 face = font.Face(); 57 printf("\t\tflags: 0x%08lx\n", font [all...] |
H A D | GetBoundingBoxesTest.cpp | 7 GetBoundingBoxesAsGlyphsTest(BFont *font) argument 12 font->GetBoundingBoxesAsGlyphs(string, numChars, B_SCREEN_METRIC, rectArray); 20 GetBoundingBoxesAsStringTest(BFont *font) argument 26 font->GetBoundingBoxesAsString(string, numChars, B_SCREEN_METRIC, &delta, rectArray); 34 GetBoundingBoxesForStringsTest(BFont *font) argument 42 font->GetBoundingBoxesForStrings(stringArray, numStrings, B_SCREEN_METRIC, &delta, rectArray); 52 BFont font(be_plain_font); 53 //font.SetRotation(45); 54 //font.SetShear(45); 55 font [all...] |
/haiku-fatelf/src/libs/pdflib/libs/pdflib/ |
H A D | p_pfm.c | 15 * PDFlib routines for fast reading of PFM font metrics files 59 /* Windows font descriptor flags */ 60 #define PDF_FIXED_PITCH 0x01 /* Fixed width font; rarely used flag */ 88 pdf_check_pfm_encoding(PDF *p, pdc_font *font, const char *fontname, argument 96 switch (font->encoding) 99 font->encoding = pdc_winansi; 100 font->isstdlatin = pdc_true; 104 font->encoding = pdc_builtin; 105 font->isstdlatin = pdc_false; 110 pdc_errprintf(p->pdc, "%d", font 171 pdf_parse_pfm(PDF *p, pdc_file *fp, pdc_font *font) argument 311 pdf_get_metrics_pfm( PDF *p, pdc_font *font, const char *fontname, pdc_encoding enc, const char *filename) argument [all...] |
H A D | p_cid.c | 15 * PDFlib CID font handling routines 23 /* returns font handle, 24 ** or -1 if no font found, 30 pdc_font *font = &p->fonts[p->fonts_number]; local 34 * Look whether font is already in the cache. 35 * If font with same name and encoding is found, 41 p->fonts[slot].style == font->style && 63 if (font->verbose) 69 /* Check whether the font name is among the known CID fonts */ 75 /* Unknown font */ 136 pdf_get_ordering_cid(PDF *p, pdc_font *font) argument 143 pdf_get_supplement_cid(PDF *p, pdc_font *font) argument 167 pdf_put_cidglyph_widths(PDF *p, pdc_font *font) argument [all...] |
H A D | p_afm.c | 89 pdc_font *font, 138 if (font->verbose == pdc_true) 150 font->name = pdc_strdup(p->pdc, arg1); 156 font->type = pdc_MMType1; 163 font->isstdlatin = pdc_true ; 169 font->StdHW = (int) dz; 175 font->StdVW = (int) dz; 178 /* If we don't know StdVW we guess it from the font weight */ 180 if (font->StdVW == 0) 183 font 86 pdf_parse_afm( PDF *p, pdc_file *fp, pdc_font *font, const char *fontname, const char *filename) argument 356 pdf_process_metrics_data( PDF *p, pdc_font *font, const char *fontname) argument 482 pdf_get_metrics_afm( PDF *p, pdc_font *font, const char *fontname, pdc_encoding enc, const char *filename) argument 516 pdf_get_core_metrics_afm( PDF *p, pdc_font *font, pdc_core_metric *metric, const char *fontname, const char *filename) argument [all...] |
H A D | p_font.c | 15 * PDFlib font handling routines 57 if (p->fonts_number == 0 || p->tstate[p->sl].f == -1) /* no font set */ 66 if (p->fonts_number == 0 || p->tstate[p->sl].f == -1) /* no font set */ 76 pdc_font *font; local 79 if (p->fonts_number == 0 || p->tstate[p->sl].f == -1) /* no font set */ 82 font = &p->fonts[p->tstate[p->sl].f]; 83 switch (font->encoding) 86 ret = (const char *) font->cmapname; 90 ret = pdf_get_encoding_name(p, font->encoding); 99 if (p->fonts_number == 0 || p->tstate[p->sl].f == -1) /* no font se 115 pdf_cleanup_font(PDF *p, pdc_font *font) argument 164 pdc_font *font; local 184 pdf_get_metrics_core(PDF *p, pdc_font *font, const char *fontname, pdc_encoding enc) argument 216 pdf_make_fontflag(PDF *p, pdc_font *font) argument 320 pdc_font *font; local 782 PDF_get_glyphid(PDF *p, int font, int code) argument 815 pdf_write_fontdescriptor( PDF *p, pdc_font *font, pdc_id fontdescriptor_id, pdc_id fontfile_id) argument 879 pdf_put_font(PDF *p, pdc_font *font) argument [all...] |
H A D | p_kerning.c | 25 PDF_get_kern_amount( PDF *p, int font, int firstchar, int secondchar) argument 31 "(p[%p], %d, %d, %d)", (void *) p, font, firstchar, secondchar))
|
H A D | p_font.h | 15 * Header file for the PDFlib font subsystem 33 pdc_bool pdf_get_metrics_tt(PDF *p, pdc_font *font, 37 const char *fontname, pdc_font *font); 41 pdc_bool pdf_process_metrics_data(PDF *p, pdc_font *font, 43 pdc_bool pdf_get_metrics_afm(PDF *p, pdc_font *font, 46 pdc_bool pdf_get_core_metrics_afm(PDF *p, pdc_font *font, 51 pdc_bool pdf_check_pfm_encoding(PDF *p, pdc_font *font, 53 pdc_bool pdf_get_metrics_pfm(PDF *p, pdc_font *font, 58 pdc_bool pdf_get_metrics_cid(PDF *p, pdc_font *font, 63 const char* pdf_get_ordering_cid(PDF *p, pdc_font *font); [all...] |
/haiku-fatelf/src/libs/glut/ |
H A D | glut_bwidth.c | 16 glutBitmapWidth(GLUTbitmapFont font, int c) argument 22 fontinfo = (BitmapFontPtr) __glutFont(font); 24 fontinfo = (BitmapFontPtr) font; 37 glutBitmapLength(GLUTbitmapFont font, const unsigned char *string) argument 44 fontinfo = (BitmapFontPtr) __glutFont(font); 46 fontinfo = (BitmapFontPtr) font;
|
H A D | glut_swidth.c | 16 glutStrokeWidth(GLUTstrokeFont font, int c) argument 22 fontinfo = (StrokeFontPtr) __glutFont(font); 24 fontinfo = (StrokeFontPtr) font; 37 glutStrokeLength(GLUTstrokeFont font, const unsigned char *string) argument 44 fontinfo = (StrokeFontPtr) __glutFont(font); 46 fontinfo = (StrokeFontPtr) font;
|
/haiku-fatelf/src/preferences/fonts/ |
H A D | main.cpp | 45 BFont font; local 49 view->GetFont(&font); 50 font.SetSize(18); 51 font.SetFace(B_BOLD_FACE); 52 view->SetFontAndColor(0, 5, &font);
|
/haiku-fatelf/src/preferences/virtualmemory/ |
H A D | VirtualMemory.cpp | 45 BFont font; local 49 view->GetFont(&font); 50 font.SetSize(18); 51 font.SetFace(B_BOLD_FACE); 52 view->SetFontAndColor(0, 13, &font);
|
/haiku-fatelf/src/libs/pdflib/bind/pdflib/cpp/ |
H A D | hello.cpp | 14 int font; local 34 font = p.load_font("Helvetica-Bold", "host", ""); 36 p.setfont(font, 24);
|
/haiku-fatelf/src/libs/pdflib/bind/pdflib/perl/ |
H A D | hello.pl | 28 $font = PDF_load_font($p, "Helvetica-Bold", "winansi", ""); 30 PDF_setfont($p, $font, 24.0);
|
/haiku-fatelf/src/libs/pdflib/bind/pdflib/python/ |
H A D | hello.py | 27 font = PDF_load_font(p, "Helvetica-Bold", "winansi", "") variable 29 PDF_setfont(p, font, 24)
|
/haiku-fatelf/docs/userguide/ |
H A D | Haiku-doc.css | 24 font-family: "DejaVu Sans", Arial, Helvetica, sans-serif; 30 font-weight: bold; 35 font-weight: bold; 89 font-family: Myriad Pro,Myriad Web Pro Regular,Lucida Grande,Geneva,Trebuchet MS,sans-serif; 90 font-weight: normal; 91 font-size: 16px; 114 font-size: 0.8em; 118 font-weight: normal; 127 font-size: 0.8em; 161 font [all...] |
/haiku-fatelf/docs/welcome/ |
H A D | Haiku-doc.css | 24 font-family: "DejaVu Sans", Arial, Helvetica, sans-serif; 30 font-weight: bold; 35 font-weight: bold; 89 font-family: Myriad Pro,Myriad Web Pro Regular,Lucida Grande,Geneva,Trebuchet MS,sans-serif; 90 font-weight: normal; 91 font-size: 16px; 114 font-size: 0.8em; 118 font-weight: normal; 127 font-size: 0.8em; 161 font [all...] |
/haiku-fatelf/src/documentation/docbook-xsl/slides/browser/ |
H A D | slides.css | 3 body { font-family: sans-serif; 4 font-weight: bold; 14 font-size: 16pt; 44 .foil { font-size: 16pt; 57 .foil pre { font-size: 16pt; 66 .foilgroup { font-size: 16pt; 92 .navhead .slidestitle { font-weight: normal; 93 font-size: 10pt; 94 font-style: italic; 108 .link-text { font [all...] |
/haiku-fatelf/src/tests/kits/interface/flatten_picture/ |
H A D | TestResultItem.cpp | 79 BFont font; local 80 owner->GetFont(&font); 82 float baseLine = itemRect.top + (itemRect.IntegerHeight() / 2 + font.Size() / 2); 90 font.SetFace(B_ITALIC_FACE); 91 owner->SetFont(&font); 99 TestResultItem::Update(BView *owner, const BFont *font) argument 101 BListItem::Update(owner, font); 105 width += font->StringWidth(fName.String()); 107 width += font->StringWidth(fErrorMessage.String());
|
/haiku-fatelf/src/servers/app/font/ |
H A D | FontCacheEntry.cpp | 149 FontCacheEntry::Init(const ServerFont& font) argument 154 glyph_rendering renderingType = _RenderTypeFor(font); 156 // TODO: encoding from font 158 bool hinting = font.Hinting(); 160 if (!fEngine.Init(font.Path(), 0, font.Size(), charMap, 162 fprintf(stderr, "FontCacheEntry::Init() - some error loading font " 163 "file %s\n", font.Path()); 168 "GlyphCache table for font file %s\n", font 364 GenerateSignature(char* signature, size_t signatureSize, const ServerFont& font) argument 396 _RenderTypeFor(const ServerFont& font) argument [all...] |
/haiku-fatelf/src/tests/kits/interface/layout/widget_layout_test/tests/ |
H A D | TextViewTest.cpp | 74 // font 75 fFontCheckBox = new LabeledCheckBox("Use large font", 145 BFont font(be_plain_font); 147 font.SetSize(ceilf(font.Size() * 1.5)); 148 fTextView->SetFontAndColor(&font); 150 fTextView->SetFontAndColor(&font);
|