Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On 10/19/2012 11:43 AM, Jay Lozier wrote:
On 10/19/2012 10:44 AM, charles meyer wrote:
Hi Folks,

I'm new to Libre Office but I read how you can create your own default
font style and size so a blank document will open to that default
style and size.

I'm trying to set Libre Writer so that when I open a saved plain text
(.txt) file it opens to my created default style and size.

Right now it opens to Preformatted Text - Courier New 10 point.

I've visited Styles and Formatting and right clicked on Preformatted
Text and chosen Modify and changes the font to Bookman Old 12 point
and clicked Apply, then OK.

I then reopened Preformatted Text style and it indeed displays my
chosen font and size.

However, still when I open a saved plain text file it opens to
Preformatted Text but with Courier New 10 point - not the Bookman Old
12 point I chose and saved.

Would anyone know if you can open saved plain documents to a desired
font style and size or are you always stuck with Courier New 10 point
whenever you open a plain text file?

I know I can highlight all the text in the opened plain text file and
chosoe the Default style and it will change back to my desired font
and style but is there any way of ensuring any plain text files will
open to a desired font stye?

Thank you so much,

Charles.

AFAIK *.txt do not store any complex formating information beyond what is found in the character set (UTF-8 typically). Thus tabs, carriage returns, line feeds are encoded; they are part of the character set. Bold, italic, font, size are not part of the character set; thus are not encoded. When you open a txt file, it appears to open using the mono space font set as your system default (mine is "Droid Sans Mono", 10 point). Typically, text editors use mono space fonts so that each character/space has the same width which makes "eyeballing" the layout for source code easier when indenting. *txt files are also called "plain text" files because that is what they are just plain text.

After formating the text, I would save as the file as *.odt (and *.doc if sharing) formats to preserve the desired formating.

As I said in my post, USE "Text Encoded" and your .txt file will save the font and the style of font in the file. Plain "TEXT" does not., Encoded Text [Text Encoded] does.

Text - opened with the fixed width - i.e. MONO - font, but saving as Text Encoded kept the Times New Roman font formatting from the original document when I opened it. The issue for me is that both formats use the same mime/file-extension type of ".txt".

TEXT ENCODED is the answer. Save it in that file format and it solves the problem.



--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.