svgcharacternode.cxx (861dea5c) | svgcharacternode.cxx (86d02030) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 394 unchanged lines hidden (view full) --- 403 case TextAlign_justify: 404 { 405 // TextAlign_notset, TextAlign_left: nothing to do 406 // TextAlign_justify is not clear currently; handle as TextAlign_left 407 break; 408 } 409 } 410 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 394 unchanged lines hidden (view full) --- 403 case TextAlign_justify: 404 { 405 // TextAlign_notset, TextAlign_left: nothing to do 406 // TextAlign_justify is not clear currently; handle as TextAlign_left 407 break; 408 } 409 } 410 |
411 // get BaselineShift 412 const BaselineShift aBaselineShift(rSvgStyleAttributes.getBaselineShift()); 413 414 // apply BaselineShift 415 switch(aBaselineShift) 416 { 417 case BaselineShift_Sub: 418 { 419 aPosition.setY(aPosition.getY() + aTextLayouterDevice.getUnderlineOffset()); 420 break; 421 } 422 case BaselineShift_Super: 423 { 424 aPosition.setY(aPosition.getY() + aTextLayouterDevice.getOverlineOffset()); 425 break; 426 } 427 case BaselineShift_Percentage: 428 case BaselineShift_Length: 429 { 430 const SvgNumber aNumber(rSvgStyleAttributes.getBaselineShiftNumber()); 431 const double mfBaselineShift(aNumber.solve(*this, length)); 432 433 aPosition.setY(aPosition.getY() + mfBaselineShift); 434 break; 435 } 436 default: // BaselineShift_Baseline 437 { 438 // nothing to do 439 break; 440 } 441 } 442 |
|
411 // get fill color 412 const basegfx::BColor aFill(rSvgStyleAttributes.getFill() 413 ? *rSvgStyleAttributes.getFill() 414 : basegfx::BColor(0.0, 0.0, 0.0)); 415 416 // prepare TextTransformation 417 basegfx::B2DHomMatrix aTextTransform; 418 --- 335 unchanged lines hidden --- | 443 // get fill color 444 const basegfx::BColor aFill(rSvgStyleAttributes.getFill() 445 ? *rSvgStyleAttributes.getFill() 446 : basegfx::BColor(0.0, 0.0, 0.0)); 447 448 // prepare TextTransformation 449 basegfx::B2DHomMatrix aTextTransform; 450 --- 335 unchanged lines hidden --- |