亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? glyphstring.c

?? linux
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* Pango * glyphstring.c: * * Copyright (C) 1999 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */#include <config.h>#include <glib.h>#include "pango-glyph.h"#include "pango-font.h"#include "pango-impl-utils.h"/** * pango_glyph_string_new: * * Create a new #PangoGlyphString. * * Return value: the newly allocated #PangoGlyphString, which *               should be freed with pango_glyph_string_free(). */PangoGlyphString *pango_glyph_string_new (void){  PangoGlyphString *string = g_slice_new (PangoGlyphString);  string->num_glyphs = 0;  string->space = 0;  string->glyphs = NULL;  string->log_clusters = NULL;  return string;}/** * pango_glyph_string_set_size: * @string:    a #PangoGlyphString. * @new_len:   the new length of the string. * * Resize a glyph string to the given length. */voidpango_glyph_string_set_size (PangoGlyphString *string, gint new_len){  g_return_if_fail (new_len >= 0);  while (new_len > string->space)    {      if (string->space == 0)	string->space = 1;      else	string->space *= 2;      if (string->space < 0)	{	  g_warning ("glyph string length overflows maximum integer size, truncated");	  new_len = string->space = G_MAXINT - 8;	}    }  string->glyphs = g_realloc (string->glyphs, string->space * sizeof (PangoGlyphInfo));  string->log_clusters = g_realloc (string->log_clusters, string->space * sizeof (gint));  string->num_glyphs = new_len;}GTypepango_glyph_string_get_type (void){  static GType our_type = 0;  if (G_UNLIKELY (our_type == 0))    our_type = g_boxed_type_register_static (I_("PangoGlyphString"),					     (GBoxedCopyFunc)pango_glyph_string_copy,					     (GBoxedFreeFunc)pango_glyph_string_free);  return our_type;}/** * pango_glyph_string_copy: * @string: a #PangoGlyphString. * *  Copy a glyph string and associated storage. * * Return value: the newly allocated #PangoGlyphString, which *               should be freed with pango_glyph_string_free(). */PangoGlyphString *pango_glyph_string_copy (PangoGlyphString *string){  PangoGlyphString *new_string = g_slice_new (PangoGlyphString);  *new_string = *string;  new_string->glyphs = g_memdup (string->glyphs,				 string->space * sizeof (PangoGlyphInfo));  new_string->log_clusters = g_memdup (string->log_clusters,				       string->space * sizeof (gint));  return new_string;}/** * pango_glyph_string_free: * @string:    a #PangoGlyphString. * * Free a glyph string and associated storage. */voidpango_glyph_string_free (PangoGlyphString *string){  g_free (string->glyphs);  g_free (string->log_clusters);  g_slice_free (PangoGlyphString, string);}/** * pango_glyph_string_extents_range: * @glyphs:   a #PangoGlyphString * @start:    start index * @end:      end index (the range is the set of bytes with	      indices such that start <= index < end) * @font:     a #PangoFont * @ink_rect: rectangle used to store the extents of the glyph string range as drawn *            or %NULL to indicate that the result is not needed. * @logical_rect: rectangle used to store the logical extents of the glyph string range *            or %NULL to indicate that the result is not needed. * * Computes the extents of a sub-portion of a glyph string. The extents are * relative to the start of the glyph string range (the origin of their * coordinate system is at the start of the range, not at the start of the entire * glyph string). **/voidpango_glyph_string_extents_range (PangoGlyphString *glyphs,				  int               start,				  int               end,				  PangoFont        *font,				  PangoRectangle   *ink_rect,				  PangoRectangle   *logical_rect){  int x_pos = 0;  int i;  /* Note that the handling of empty rectangles for ink   * and logical rectangles is different. A zero-height ink   * rectangle makes no contribution to the overall ink rect,   * while a zero-height logical rect still reserves horizontal   * width. Also, we may return zero-width, positive height   * logical rectangles, while we'll never do that for the   * ink rect.   */  g_return_if_fail (start <= end);  if (G_UNLIKELY (!ink_rect && !logical_rect))    return;  if (ink_rect)    {      ink_rect->x = 0;      ink_rect->y = 0;      ink_rect->width = 0;      ink_rect->height = 0;    }  if (logical_rect)    {      logical_rect->x = 0;      logical_rect->y = 0;      logical_rect->width = 0;      logical_rect->height = 0;    }  for (i = start; i < end; i++)    {      PangoRectangle glyph_ink;      PangoRectangle glyph_logical;      PangoGlyphGeometry *geometry = &glyphs->glyphs[i].geometry;      pango_font_get_glyph_extents (font, glyphs->glyphs[i].glyph,				    ink_rect ? &glyph_ink : NULL,				    logical_rect ? &glyph_logical : NULL);      if (ink_rect && glyph_ink.width != 0 && glyph_ink.height != 0)	{	  if (ink_rect->width == 0 || ink_rect->height == 0)	    {	      ink_rect->x = x_pos + glyph_ink.x + geometry->x_offset;	      ink_rect->width = glyph_ink.width;	      ink_rect->y = glyph_ink.y + geometry->y_offset;	      ink_rect->height = glyph_ink.height;	    }	  else	    {	      int new_x, new_y;	      new_x = MIN (ink_rect->x, x_pos + glyph_ink.x + geometry->x_offset);	      ink_rect->width = MAX (ink_rect->x + ink_rect->width,				     x_pos + glyph_ink.x + glyph_ink.width + geometry->x_offset) - new_x;	      ink_rect->x = new_x;	      new_y = MIN (ink_rect->y, glyph_ink.y + geometry->y_offset);	      ink_rect->height = MAX (ink_rect->y + ink_rect->height,				      glyph_ink.y + glyph_ink.height + geometry->y_offset) - new_y;	      ink_rect->y = new_y;	    }	}      if (logical_rect)	{	  logical_rect->width += geometry->width;	  if (i == start)	    {	      logical_rect->y = glyph_logical.y;	      logical_rect->height = glyph_logical.height;	    }	  else	    {	      int new_y = MIN (logical_rect->y, glyph_logical.y);	      logical_rect->height = MAX (logical_rect->y + logical_rect->height,					  glyph_logical.y + glyph_logical.height) - new_y;	      logical_rect->y = new_y;	    }	}      x_pos += geometry->width;    }}/** * pango_glyph_string_extents: * @glyphs:   a #PangoGlyphString * @font:     a #PangoFont * @ink_rect: rectangle used to store the extents of the glyph string as drawn *            or %NULL to indicate that the result is not needed. * @logical_rect: rectangle used to store the logical extents of the glyph string *            or %NULL to indicate that the result is not needed. * * Compute the logical and ink extents of a glyph string. See the documentation * for pango_font_get_glyph_extents() for details about the interpretation * of the rectangles. */voidpango_glyph_string_extents (PangoGlyphString *glyphs,			    PangoFont        *font,			    PangoRectangle   *ink_rect,			    PangoRectangle   *logical_rect){  pango_glyph_string_extents_range (glyphs, 0, glyphs->num_glyphs,				    font, ink_rect, logical_rect);}/** * pango_glyph_string_get_width: * @glyphs:   a #PangoGlyphString * * Computes the logical width of the glyph string as can also be computed * using pango_glyph_string_extents().  However, since this only computes the * width, it's much faster.  This is in fact only a convenience function that * computes the sum of geometry.width for each glyph in the @glyphs. * * Return value: the logical width of the glyph string. * * Since: 1.14 */intpango_glyph_string_get_width (PangoGlyphString *glyphs){  int i;  int width = 0;  for (i = 0; i < glyphs->num_glyphs; i++)    width += glyphs->glyphs[i].geometry.width;  return width;}/** * pango_glyph_string_get_logical_widths: * @glyphs: a #PangoGlyphString * @text: the text corresponding to the glyphs * @length: the length of @text, in bytes * @embedding_level: the embedding level of the string * @logical_widths: an array whose length is g_utf8_strlen (text, length) *                  to be filled in with the resulting character widths. * * Given a #PangoGlyphString resulting from pango_shape() and the corresponding * text, determine the screen width corresponding to each character. When * multiple characters compose a single cluster, the width of the entire * cluster is divided equally among the characters. **/voidpango_glyph_string_get_logical_widths (PangoGlyphString *glyphs,				       const char       *text,				       int               length,				       int               embedding_level,				       int              *logical_widths){  int i, j;  int last_cluster = 0;  int width = 0;  int last_cluster_width = 0;  const char *p = text;		/* Points to start of current cluster */  for (i=0; i<=glyphs->num_glyphs; i++)    {      int glyph_index = (embedding_level % 2 == 0) ? i : glyphs->num_glyphs - i - 1;      /* If this glyph belongs to a new cluster, or we're at the end, find       * the start of the next cluster, and assign the widths for this cluster.       */      if (i == glyphs->num_glyphs || p != text + glyphs->log_clusters[glyph_index])	{	  int next_cluster = last_cluster;	  if (i < glyphs->num_glyphs)	    {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃精品在线观看| 3751色影院一区二区三区| 国产在线视频一区二区三区| 色天天综合久久久久综合片| 三级精品在线观看| 日韩精品一区二区三区在线| 欧美放荡的少妇| 777xxx欧美| 日韩欧美色综合| 亚洲精品在线电影| 国产亚洲欧美中文| 国产精品伦一区| 成人免费一区二区三区视频 | 99久久99久久精品国产片果冻| 国产精品一区二区男女羞羞无遮挡| 国产一区二区三区精品欧美日韩一区二区三区 | 成年人国产精品| 99re成人精品视频| 日本精品一区二区三区四区的功能| 亚洲福利一二三区| 亚洲一卡二卡三卡四卡| 亚洲欧美偷拍卡通变态| 一区二区三区精品久久久| 亚洲影视在线播放| 奇米四色…亚洲| 精品在线免费视频| 成人黄色小视频在线观看| 97精品国产露脸对白| 欧美亚洲综合色| 精品日韩av一区二区| 欧美激情中文不卡| 一区二区三区不卡视频| 日av在线不卡| 成人黄色小视频| 欧美日韩另类国产亚洲欧美一级| 日韩精品中午字幕| 中文字幕日本乱码精品影院| 石原莉奈一区二区三区在线观看| 狠狠色狠狠色综合| 色噜噜夜夜夜综合网| 欧美videofree性高清杂交| 国产精品伦理在线| 日本不卡视频在线观看| 风间由美性色一区二区三区| 精品视频999| 国产午夜精品一区二区三区视频 | 中文字幕中文字幕一区| 婷婷中文字幕综合| 成人美女视频在线观看| 欧美一区二区三区在线视频| 中文字幕在线免费不卡| 日本sm残虐另类| 97se亚洲国产综合在线| 欧美大片顶级少妇| 亚洲精品国产一区二区精华液 | 亚洲一区二区三区爽爽爽爽爽| 美脚の诱脚舐め脚责91| 日本道精品一区二区三区| 精品99999| 视频在线在亚洲| 91在线观看成人| 久久久久久**毛片大全| 日韩1区2区日韩1区2区| 99综合电影在线视频| www精品美女久久久tv| 午夜精品福利一区二区蜜股av| hitomi一区二区三区精品| 日韩欧美专区在线| 午夜精品久久久久久久久| 波多野结衣一区二区三区 | 香蕉加勒比综合久久| av毛片久久久久**hd| 精品国产一区二区三区久久久蜜月| 一区二区三区中文免费| www.亚洲精品| 久久久久久久久久久久久夜| 免费三级欧美电影| 欧美午夜视频网站| 亚洲精品乱码久久久久久久久| 粗大黑人巨茎大战欧美成人| 26uuu精品一区二区在线观看| 手机精品视频在线观看| 欧美在线免费播放| 亚洲精品成人悠悠色影视| 不卡一二三区首页| 欧美极品少妇xxxxⅹ高跟鞋| 国产麻豆视频一区二区| 欧美电影免费观看高清完整版在线观看| 亚洲成人资源网| 欧美私模裸体表演在线观看| 亚洲欧洲综合另类在线| 色综合天天综合网国产成人综合天 | 91在线国产观看| 欧美激情一区二区三区不卡 | 不卡av在线免费观看| 久久久青草青青国产亚洲免观| 免费成人在线观看| 日韩免费高清av| 加勒比av一区二区| 精品国产3级a| 国产伦精品一区二区三区视频青涩| 日韩一级片网站| 久久精品国产一区二区三区免费看 | www国产亚洲精品久久麻豆| 精品亚洲国内自在自线福利| 日韩欧美国产成人一区二区| 精品一区免费av| 久久综合成人精品亚洲另类欧美 | 高清视频一区二区| 国产色91在线| aaa欧美大片| 亚洲在线一区二区三区| 欧美人牲a欧美精品| 老汉av免费一区二区三区 | 国产专区欧美精品| 久久精品亚洲麻豆av一区二区| 国产成人在线色| 国产欧美精品国产国产专区| 99久久精品情趣| 亚洲国产精品自拍| 欧美一区二区三区免费观看视频| 伦理电影国产精品| 久久综合999| 93久久精品日日躁夜夜躁欧美| 一区二区三区在线免费观看| 欧美精品自拍偷拍| 国模少妇一区二区三区| 中文字幕一区二区三区视频| 欧美性欧美巨大黑白大战| 免费av成人在线| 国产精品色一区二区三区| 91欧美一区二区| 视频在线观看一区二区三区| 久久久电影一区二区三区| 99热精品一区二区| 日韩经典中文字幕一区| 久久精品男人的天堂| 91激情五月电影| 久久99精品久久久久久动态图| 国产精品久久夜| 911精品产国品一二三产区| 国产精品综合一区二区| 一级精品视频在线观看宜春院| 日韩欧美色电影| 93久久精品日日躁夜夜躁欧美| 日本欧美一区二区| 中文字幕一区二区三区四区不卡| 欧美日韩黄色影视| 国产成人av电影在线| 天堂在线一区二区| 国产蜜臀av在线一区二区三区| 欧美日韩美女一区二区| 盗摄精品av一区二区三区| 日精品一区二区| 亚洲视频网在线直播| 精品福利在线导航| 欧美色视频在线| 成人性生交大片免费看在线播放| 日韩激情视频在线观看| 亚洲婷婷在线视频| 精品国产乱码久久| 欧美色欧美亚洲另类二区| 国产福利一区二区三区| 日本中文在线一区| 亚洲欧美韩国综合色| 久久在线观看免费| 欧美日韩另类国产亚洲欧美一级| 成人综合婷婷国产精品久久| 日韩成人免费看| 亚洲狠狠爱一区二区三区| 国产精品久久久久久福利一牛影视| 制服丝袜亚洲精品中文字幕| 91性感美女视频| 国产宾馆实践打屁股91| 午夜一区二区三区视频| 亚洲美腿欧美偷拍| 国产精品视频一二三区| 精品国产一区二区三区久久影院| 欧美日韩二区三区| 日本久久电影网| 99久久综合色| 国产成人精品一区二| 久久se精品一区二区| 日韩国产欧美一区二区三区| 亚洲午夜久久久久久久久电影院| 中文字幕一区av| 国产精品色哟哟网站| 国产欧美一区在线| 久久久久久久久蜜桃| www一区二区| 26uuu国产日韩综合| 精品国产不卡一区二区三区| 日韩一区二区三区观看| 欧美日韩不卡一区二区| 欧美日韩国产成人在线91| 精品视频一区三区九区| 欧美三级日本三级少妇99| 欧美四级电影网| 欧美日韩视频专区在线播放| 欧美日韩一卡二卡三卡 |