Problems with "Combining double breve"

53 views
Skip to first unread message

Wolfgang

unread,
Oct 8, 2009, 10:57:50 AM10/8/09
to cufón, wkn...@hg-online.de
Hi,

I want to use Cufon to display IPA texts on a website. Seems to be a
great tool so far!

Unfortunately, the chars "0x035C" (Combining double breve below) and
"0x361" (combining double inverted breve") do not seem to work for
font "Doulos SIL" ( http://scripts.sil.org/DoulosSIL_download ).

I placed a screenshot of my sample here: http://www.hg-online.de/downloads/cufon.png
The character right to the breve is moved to much to the right.

The sample tries to display the char by specifying the font family
through CSS and by using Cufon. I also tried it with "Lucida Sans
Unicode", here the breves did not work at all. And "Arial Unicode MS"
failed in the generator (message "OK, but.. .. can't do much without
a font."). Maybe the file is too large (22MB)...

Does anybody have an idea what might go wrong? Is it a matter of the
font generator or of Cufon?

Thanks

Wolfgang

============================
Here is my JSP file which creates the HTML (I don't post the generated
HTML because I fear that the chars might get broken in this forum):

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="cufon-yui.js" type="text/javascript"></script>
<script src="Doulos_SIL_400.font.js" type="text/javascript"></
script>
<script src="Lucida_Sans_Unicode_400.font.js" type="text/
javascript"></script>
<script type="text/javascript">
Cufon.DOM.ready(function() {
Cufon.set('fontFamily', 'Doulos SIL').replace
(document.getElementById('test3'));
Cufon.set('fontFamily', 'Lucida Sans Unicode').replace
(document.getElementById('test5'));
Cufon.set('fontFamily', 'Arial Unicode MS').replace
(document.getElementById('test5'));
});
</script>
<title>Insert title here</title>
</head>
<body>
<h1 id="test1">Testing (default font): a<%=(char) 0x35c%>b! a<%=
(char) 0x361%>b</h1>
<br/>

<h1 id="test2" style="font-family:'Doulos SIL'">Testing Doulos (CSS
font): a<%=(char) 0x35c%>b a<%=(char) 0x361%>b!</h1>
<h1 id="test3">Testing Doulos (Cufon): a<%=(char) 0x35c%>b! a<%=
(char) 0x361%>b</h1>


<br/>
<h1 id="test4" style="font-family:'Lucida Sans Unicode'">Testing
Lucida Sans Unicode (CSS font): a<%=(char) 0x35c%>b a<%=(char)
0x361%>b!</h1>
<h1 id="test5">Testing Lucida Sans Unicode (Cufon): a<%=(char) 0x35c
%>b a<%=(char) 0x361%>b!</h1>

<br/>
<h1 id="test6" style="font-family:'Arial Unicode MS'">Testing Arial
Unicode MS (CSS font): a<%=(char) 0x35c%>b a<%=(char) 0x361%>b!</h1>

</body>
</html>

Simo Kinnunen

unread,
Oct 10, 2009, 10:01:02 AM10/10/09
to cu...@googlegroups.com
Hi Wolfgang,

Unfortunately combining characters are not supported yet, however as
they seem relatively simple to implement I'll add it to my todo list.
Would you mind filing a feature request at http://github.com/sorccu/cufon/issues?

Simo

Wolfgang

unread,
Oct 10, 2009, 6:07:54 PM10/10/09
to cufón
Thanks for your reply. I filed the feature request and linked it to
this thread.

This is unfortunately blocker for using Cufon in a project for a
customer of our company. But I didn't find any other alternatives for
it :-(. Is there a chance to speed up adding this feature by doing a
donation for the project?

Wolfgang

Simo Kinnunen

unread,
Oct 12, 2009, 5:13:41 PM10/12/09
to cu...@googlegroups.com
Hi Wolfgang,

While we certainly do appreciate donations, developing new features
(and clearing the backlog of old feature requests) is more of a time-
related issue. I'll look into it, but unfortunately I cannot guarantee
anything even if you do decide to donate, especially since I'm going
to have to study the issue a bit more to make sure that it's actually
possible to implement it.

Simo

Simo Kinnunen

unread,
Oct 15, 2009, 5:38:44 AM10/15/09
to cu...@googlegroups.com
Hi Wolfgang,

This feature seems to be more troublesome than I initially thought.
Fixing the gap would be easy, but placing the diacritics to their
correct positions requires information from the GPOS tables which
Cufón does not read at all (or actually only kerning tables are read).

Simo

On Oct 11, 2009, at 1:07 AM, Wolfgang wrote:

>

Wolfgang

unread,
Oct 15, 2009, 5:23:45 PM10/15/09
to cufón
Hi Simo,

does this mean "impossible"?

I need only two of the combining chars. Would it be possible that you
provide me with some basic hints on how to work around this myself?
Maybe I could make those two characters work for me and my special use
case? Hopefully there are "only" changes in the font js required?

Thanks

Wolfgang

Simo Kinnunen

unread,
Oct 17, 2009, 8:45:40 AM10/17/09
to cu...@googlegroups.com
Hi Wolfgang,

Well, at the very least you should be able to get rid of the gap by
using the latest development version (http://github.com/sorccu/cufon/blob/master/js/cufon.js
).

Simo

Wolfgang

unread,
Oct 20, 2009, 3:30:50 AM10/20/09
to cufón
Whow, this works great now for my two sample chars. Thanks a lot for
fixing it!

I will convince our customer to do a donation to this great project.

Wolfgang
Reply all
Reply to author
Forward
0 new messages