Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Unified Diff: ui/gfx/pango_util.h

Issue 7511029: Implement Pango RenderText for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/pango_util.h
===================================================================
--- ui/gfx/pango_util.h (revision 0)
+++ ui/gfx/pango_util.h (revision 0)
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_PANGO_UTIL_H_
+#define UI_GFX_PANGO_UTIL_H_
+#pragma once
+
+#include <pango/pango.h>
+#include "base/i18n/rtl.h"
+#include "base/string16.h"
+
+// TODO(xji): move other pango related functions from gtk_util to here.
+
+namespace gfx {
+
+class Font;
+
+// Setup pango layout |layout|, including set layout text as |text|, font
+// description based on |font|, width as |width| in PANGO_SCALE for RTL lcoale,
+// and set up whether auto-detect directionality, alignment, ellipsis, word
+// wrapping, resolution etc.
+void SetupPangoLayout(PangoLayout* layout,
+ const string16& text,
+ const gfx::Font& font,
+ int width,
+ base::i18n::TextDirection text_direction,
+ int flags);
+} // namespace gfx
+
+#endif // UI_GFX_PANGO_UTIL_H_
Property changes on: ui/gfx/pango_util.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/gfx/canvas_skia_linux.cc ('k') | ui/gfx/pango_util.cc » ('j') | ui/gfx/render_text_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698