glpangofont.h 928 B

12345678910111213141516171819202122232425262728
  1. /*************************************************************************
  2. * Copyright (c) 2011 AT&T Intellectual Property
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Eclipse Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * https://www.eclipse.org/legal/epl-v10.html
  7. *
  8. * Contributors: Details at https://graphviz.org
  9. *************************************************************************/
  10. #pragma once
  11. #include <cairo/cairo.h>
  12. #include <pango/pangocairo.h>
  13. #include <png.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. // creates a font file with given name and font description
  18. unsigned char *glCompCreatePangoTexture(char *fontdescription, int fontsize,
  19. char *txt, cairo_surface_t **surface,
  20. int *w, int *h);
  21. #ifdef __cplusplus
  22. }
  23. #endif