Skip navigation
4815 Views 19 Replies Latest reply: Jul 20, 2010 10:55 AM by Daryl Herzmann RSS
patfrat Bronze 16 posts since
Nov 19, 2009
Currently Being Moderated

Feb 12, 2010 2:19 PM

Changing font, not only the size

Hello,

How can i change the police  font used by Spark ?

I can change the size only ...

thank you in advance

  • dickday Bronze 15 posts since
    Jan 14, 2010
    Currently Being Moderated
    Feb 1, 2010 7:55 PM (in response to patfrat)
    Re: Changing police, not only the size

    Police?  Not exactly sure what you are asking. Can you be a little more specific?

      • wroot KeyContributor 6,839 posts since
        Jan 24, 2005
        Currently Being Moderated
        Feb 3, 2010 6:49 AM (in response to patfrat)
        Re: Changing font, not only the size

        You can't. Changing of fonts is not implemented in the current version. Unless you will modify the source code ant compile your custom version of Spark.

          • wroot KeyContributor 6,839 posts since
            Jan 24, 2005
            Currently Being Moderated
            Feb 4, 2010 3:53 AM (in response to patfrat)
            Re: Changing font, not only the size

            As i'm not a developer it's hard for me to tell is it possible. I don't know how fonts work in Spark, is it using system fonts or something internal and how will this work across other platforms. Developer would answer this better. I will ask cstux (current developer) about this if i get a chance.

            • radders Bronze 12 posts since
              Feb 8, 2010
              Currently Being Moderated
              Jul 7, 2010 4:31 AM (in response to wroot)
              Re: Changing font, not only the size

              I am working on a version which allows the font face, size, colour & attributes (bold, italic, underline, strikethrough) to be changed.

              • wroot KeyContributor 6,839 posts since
                Jan 24, 2005
                Currently Being Moderated
                Jul 7, 2010 6:22 AM (in response to radders)
                Re: Changing font, not only the size

                Maybe you are willing to contribute your work to Spark project?

                • radders Bronze 12 posts since
                  Feb 8, 2010
                  Currently Being Moderated
                  Jul 7, 2010 6:39 AM (in response to wroot)
                  Re: Changing font, not only the size

                  Of course!

                   

                  I'm still working on it, but it's very nearly usable. I've attached a screenshot, but it still needs cosmetic work to the buttons etc...

                   

                  I'll need write access to the SVN repository, if I don't have it already...

                  Attachments:
                  • wroot KeyContributor 6,839 posts since
                    Jan 24, 2005
                    Currently Being Moderated
                    Jul 7, 2010 8:01 AM (in response to radders)
                    Re: Changing font, not only the size

                    Send button is also a part of your work? I hope this can be disabled in settings. What technology it uses to exchange text with different style between Spark clients? XHTML? Maybe this ticket is right for this? SPARK-464

                     

                    As for the SVN. So far it will be enough to leave patches here and after testing cstux will apply them to SVN. If you plan to do more work on Spark, then commit rights can be granted.

                    • radders Bronze 12 posts since
                      Feb 8, 2010
                      Currently Being Moderated
                      Jul 7, 2010 8:08 AM (in response to wroot)
                      Re: Changing font, not only the size

                      Actually, the SEND button, and code to mark-up the text with attributes was already there - I just enabled it. I added code to apply attributes to the entered text, and to display it correctly in the transcript window.

                       

                      The changes I made are intended for use exclusively within our corporate enterprise, so every user will be able to handle the enhancements.

                      The Font buttons etc are a Plugin, so can be switched off if not required.

                      • radders Bronze 12 posts since
                        Feb 8, 2010
                        Currently Being Moderated
                        Jul 9, 2010 6:25 AM (in response to radders)
                        Re: Changing font, not only the size

                        The attached patch file will update TRUNK to include the functionality I added.

                        Attachments:
                        • wroot KeyContributor 6,839 posts since
                          Jan 24, 2005
                          Currently Being Moderated
                          Jul 9, 2010 11:00 AM (in response to radders)
                          Re: Changing font, not only the size

                          Patch was applied successfully, but it doesnt compile for me in NetBeans:

                           

                          clean:
                          init:
                          Created dir: D:\My Documents\JiveSoftware\Spark\target\build\plugins
                          resources:
                          Copying 665 files to D:\My Documents\JiveSoftware\Spark\target\classes
                          Copying 5 files to D:\My Documents\JiveSoftware\Spark\target\build\resources
                          Copying 5 files to D:\My Documents\JiveSoftware\Spark\target\build\resources\sounds
                          Copying 6 files to D:\My Documents\JiveSoftware\Spark\target\build\plugins
                          Copying 4 files to D:\My Documents\JiveSoftware\Spark\target\build\xtra
                          base:
                          Building jar: D:\My Documents\JiveSoftware\Spark\target\build\lib\base.jar
                          build:
                          D:\My Documents\JiveSoftware\Spark\build.xml:207: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
                          Compiling 323 source files to D:\My Documents\JiveSoftware\Spark\target\classes
                          D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\spark\util\GraphicUtils. java:639: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release
                                      sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);
                          D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\spark\util\GraphicUtils. java:639: warning: sun.awt.shell.ShellFolder is Sun proprietary API and may be removed in a future release
                                      sun.awt.shell.ShellFolder sf = sun.awt.shell.ShellFolder.getShellFolder(file);
                          D:\My Documents\JiveSoftware\Spark\src\java\org\jivesoftware\sparkimpl\plugin\alerts\ BroadcastDialog.java:139: cannot find symbol
                          symbol  : constructor ChatInputEditor()
                          location: class org.jivesoftware.spark.ui.ChatInputEditor
                                  messageBox = new ChatInputEditor();
                          Note: Some input files use or override a deprecated API.
                          Note: Recompile with -Xlint:deprecation for details.
                          Note: Some input files use unchecked or unsafe operations.
                          Note: Recompile with -Xlint:unchecked for details.
                          1 error
                          2 warnings
                          D:\My Documents\JiveSoftware\Spark\build.xml:207: Compile failed; see the compiler error output for details.
                          BUILD FAILED (total time: 57 seconds)

                      • radders Bronze 12 posts since
                        Feb 8, 2010
                        Currently Being Moderated
                        Jul 20, 2010 12:58 AM (in response to radders)
                        Re: Changing font, not only the size

                        Further patch, wihich applies font settings functionality to GroupChat also

              • vincent Bronze 63 posts since
                May 7, 2010
                Currently Being Moderated
                Jul 11, 2010 6:52 PM (in response to radders)
                Re: Changing font, not only the size

                Your implement is just a user-defined format.Why not just implement the xhtml jep?

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points