Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38978D204 for ; Mon, 29 Oct 2012 12:34:26 +0000 (UTC) Received: (qmail 53338 invoked by uid 500); 29 Oct 2012 12:34:25 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 53154 invoked by uid 500); 29 Oct 2012 12:34:24 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 53131 invoked by uid 99); 29 Oct 2012 12:34:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 12:34:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hammyau@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 12:34:17 +0000 Received: by mail-oa0-f47.google.com with SMTP id h1so4542054oag.6 for ; Mon, 29 Oct 2012 05:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=iNS2vmTiVR3s/OeAWc77GsMfxQEkZFvbaOPnTHaN/74=; b=OP6Tkg+2DCqEMGjB9Gp6xLuE12dyjqEO1xVU/+u6QTnbOujSWo9jaNLoidw4tPPZje 0hsmCqmuAKZKmku+K8bTEn3h73mLO11SnjavZ3fKnR4tTbZ7+7qsytmLtfXYyVwvhERy 5qj7HB4NYegjt9EU2CwEfPvCYdSlQl8HgiCEaG0Erixo5R7J9Ug97bv8sHtIdNq6Eqv8 0lh0BcZY0TpO329oht4l8ktEFF5Y8ZwKLdoqqfChybz7izHcqjnkPgYiKwmIGQKEtg3N 6ig9eyGNO4siws/DuPPsFGTuOJESL64nDkkLpuLgCxockxiE7+z0/EpJTFWc2told1cp +LZA== MIME-Version: 1.0 Received: by 10.182.179.104 with SMTP id df8mr24438489obc.90.1351514037054; Mon, 29 Oct 2012 05:33:57 -0700 (PDT) Sender: hammyau@gmail.com Received: by 10.76.70.199 with HTTP; Mon, 29 Oct 2012 05:33:57 -0700 (PDT) Date: Mon, 29 Oct 2012 20:33:57 +0800 X-Google-Sender-Auth: 75G1GUNWVB0YDrw-CvxhXNiG0sw Message-ID: Subject: Fonts From: Ian C To: ooo-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I have a couple of questions. I'll use separate posts for them. When Writer cannot find the font named in the styles.xml, on the system, it defaults. How is that managed? Can someone point me to some documentaion or code that deals with that? In a test I just did I had Writer open a document I think is from a Windows system, it had paragraph font of Times New Roman. It shows Times New Roman in the toolbar. When I right click and select the character dialog it tells me the font is not installed and the closest available will be used. Which is kind of cool, but see below. I then edited the Styles XML file to change the name of the font - to one that does not exist. Then my system shows Liberation Serif as the font used. I assume that is some sort of default? Ah, I see in the Options setting that is the font selected. This time when I right click it simple tells me that the font is Liberation Serif. This doesn't seem consistent. Where did my edited font name go to? I'm guessing processing the changed XML failed in some way. Is there a log telling me this somewhere? Should the user be told about the change of font more clearly? It could cause reformatting issues. -- Cheers, Ian C