summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-05-07 04:06:29 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-05-07 04:06:29 +0000
commit1a9eb53c12b49c53aaaf56ef40220c28bd13df84 (patch)
treefd8a5035b8606576ef7c9b9fa2366d4f7880b94e /examples
parentadf1db25a516e1a8b02b89de216e2b42ef1d7639 (diff)
downloadpango-1a9eb53c12b49c53aaaf56ef40220c28bd13df84.tar.gz
When handling overstrikes, try to guess a bit better how overstrike glyphs
Sun May 7 00:00:00 2000 Owen Taylor <otaylor@redhat.com> * modules/basic/basic.c (basic_engine_shape): When handling overstrikes, try to guess a bit better how overstrike glyphs are positioned in the font. (Now works with more of glyphs from clearlyu, though not the Hebrew accents in that font) * examples/HELLO.utf8: Insert tab characters to keep the columns in the right order for either global direction. Insert left-to-right marks in a few places to keep leading and trailing punctuation in the right place. * modules/basic/basic.c (basic_engine_shape): Don't show RLM and LRM * pango/glyphstring.c (pango_glyph_string_extents): Use the logical width set in the glyph string rather than that from the font's metrics. * pango/pangox.c (pango_x_render): Treat glyph index 0 as special - representing invisible, 0 size character. We need this sometimes, and it is easier and faster to have this special case than to shape a space. * pango/pango-context.c (pango_itemize): Put tabs into separate items. (Sort of lame hack, we do this to make line breaking with tab handling simpler) * examples/viewer.c (checkbutton_toggled): Notify all the layouts that the context has changed so the RTL base dir change actually takes effect.
Diffstat (limited to 'examples')
-rw-r--r--examples/HELLO.utf873
-rw-r--r--examples/viewer.c12
2 files changed, 48 insertions, 37 deletions
diff --git a/examples/HELLO.utf8 b/examples/HELLO.utf8
index 7c624392..281c1be1 100644
--- a/examples/HELLO.utf8
+++ b/examples/HELLO.utf8
@@ -5,43 +5,42 @@ This is a list of ways to say hello in various languages. Its purpose is to illu
(Converted into UTF-8)
---------------------------------------------------------
-Arabic السلام عليكم
-Czech (česky) Dobrý den
-Danish (Dansk) Hej, Goddag
-English Hello
-Esperanto Saluton
-Estonian Tere, Tervist
-FORTRAN PROGRAM
-Finnish (Suomi) Hei
-French (Français) Bonjour, Salut
-German (Deutsch Nord) Guten Tag
-German (Deutsch Süd) Grüß Gott
-Greek (Ελληνικά) Γειά σας
-Hebrew שלום
-Hindi नमस्ते, नमस्कार।
-Italiano Ciao, Buon giorno
-Maltese Ċaw, Saħħa
-Nederlands, Vlaams Hallo, Dag
-Norwegian (Norsk) Hei, God dag
-Polish Dzień dobry, Hej
-Russian (Русский) Здравствуйте!
-Slovak Dobrý deň
-Spanish (Español) ¡Hola!
-Swedish (Svenska) Hej, Goddag
-Thai (ภาษาไทย) สวัสดีครับ, สวัสดีค่ะ
-Turkish (Türkçe) Merhaba
-Vietnamese (Tiếng Việt) Xin Chào
-Yiddish (ײַדישע) דאָס הײַזעלע
+Arabic السلام عليكم
+Czech (česky) Dobrý den
+Danish (Dansk) Hej, Goddag
+English Hello
+Esperanto Saluton
+Estonian Tere, Tervist
+FORTRAN PROGRAM
+Finnish (Suomi) Hei
+French (Français) Bonjour, Salut
+German (Deutsch Nord) Guten Tag
+German (Deutsch Süd) Grüß Gott
+Greek (Ελληνικά) Γειά σας
+Hebrew שלום
+Hindi नमस्ते, नमस्कार।
+Italiano Ciao, Buon giorno
+Maltese Ċaw, Saħħa
+Nederlands, Vlaams Hallo, Dag
+Norwegian (Norsk) Hei, God dag
+Polish Dzień dobry, Hej
+Russian (Русский) Здравствуйте!‎
+Slovak Dobrý deň
+Spanish (Español) ‎¡Hola!‎
+Swedish (Svenska) Hej, Goddag
+Thai (ภาษาไทย) สวัสดีครับ, สวัสดีค่ะ
+Turkish (Türkçe) Merhaba
+Vietnamese (Tiếng Việt) Xin Chào
+Yiddish (ײַדישע) דאָס הײַזעלע
-Japanese (日本語) こんにちは, コンニチハ
-Chinese (中文,普通话,汉语) 你好
-Cantonese (粵語,廣東話) 早晨, 你好
-Korean (한글) 안녕하세요, 안녕하십니까
-
-Difference among chinese characters in GB, JIS, KSC, BIG5:
- GB -- 元气 开发
- JIS -- 元気 開発
- KSC -- 元氣 開發
- BIG5 -- 元氣 開發
+Japanese (日本語) こんにちは, コンニチハ
+Chinese (中文,普通话,汉语) 你好
+Cantonese (粵語,廣東話) 早晨, 你好
+Korean (한글) 안녕하세요, 안녕하십니까
+Difference among chinese characters in GB, JIS, KSC, BIG5:‎
+ GB -- 元气 开发
+ JIS -- 元気 開発
+ KSC -- 元氣 開發
+ BIG5 -- 元氣 開發
diff --git a/examples/viewer.c b/examples/viewer.c
index ccff0b77..61beceab 100644
--- a/examples/viewer.c
+++ b/examples/viewer.c
@@ -372,7 +372,19 @@ button_press (GtkWidget *layout, GdkEventButton *event)
static void
checkbutton_toggled (GtkWidget *widget, gpointer data)
{
+ GSList *para_list;
+
pango_context_set_base_dir (context, GTK_TOGGLE_BUTTON (widget)->active ? PANGO_DIRECTION_RTL : PANGO_DIRECTION_LTR);
+
+ para_list = paragraphs;
+ while (para_list)
+ {
+ Paragraph *para = para_list->data;
+
+ pango_layout_context_changed (para->layout);
+ para_list = para_list->next;
+ }
+
gtk_widget_queue_resize (layout);
}