Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1488576 Details for
Bug 1634394
font size jumps in large steps
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
sample code ctest3.c
ctest3.c (text/x-csrc), 1.10 KB, created by
Alois Treindl
on 2018-09-30 13:57:31 UTC
(
hide
)
Description:
sample code ctest3.c
Filename:
MIME Type:
Creator:
Alois Treindl
Created:
2018-09-30 13:57:31 UTC
Size:
1.10 KB
patch
obsolete
>// sample code to demonstrate bug in cairo >#include <cairo.h> >#include <stdio.h> > >static void measure(cairo_t *cr, char *s) >{ > cairo_text_extents_t exts; > cairo_text_extents(cr, "Some text", &exts); > > printf("%s Size: %gx%g", s, exts.width, exts.height); >} > >int main() >{ > int i; > char t[80]; > double pt; > > // create PDF surfece > cairo_surface_t *s = cairo_pdf_surface_create("test.pdf", 1000, 1000); > cairo_t *cr = cairo_create(s); > > // set option CAIRO_HINT_METRICS_OFF > // this steps is irrlevant for PDF surface, but to show same effect in > // bitmap surface, it has to be included. > cairo_font_options_t *opt = cairo_font_options_create(); > cairo_get_font_options(cr, opt); > cairo_font_options_set_hint_metrics(opt, CAIRO_HINT_METRICS_OFF); > cairo_set_font_options(cr, opt); > > // loop font size from 9.0 to 10.o pt in stepsof 0.1 pt > for (i = 90; i <= 100; i++) { > pt = i * 0.1; > cairo_set_font_size(cr, pt); > sprintf(t, "%.1lf pt\t", pt); > measure(cr, t); > printf("\n"); > } > > // cleanup > cairo_font_options_destroy(opt); > cairo_destroy(cr); > cairo_surface_destroy(s); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1634394
: 1488576